aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/randomization.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/randomization.hpp')
-rw-r--r--src/interfaces/randomization.hpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp
deleted file mode 100644
index 06f7d49..0000000
--- a/src/interfaces/randomization.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-#include <yacppdic/factory.hpp>
-
-#include <memory>
-
-// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
-class ISeedGenerator
-{
-public:
- virtual ~ISeedGenerator() noexcept = default;
-
- [[nodiscard]] virtual auto random_seed() noexcept -> uint32_t = 0;
-};
-
-// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
-class IRandomNumberGenerator
-{
-public:
- virtual ~IRandomNumberGenerator() noexcept = default;
-
- /**
- * Returns a number in the range of a to b.
- *
- * @param a A number lower than b
- * @param b A number greater than a
- */
- [[nodiscard]] virtual auto
- in_range(const uint32_t &a, const uint32_t &b) const noexcept -> uint32_t = 0;
-};
-
-using IRandomNumberGeneratorFactory =
- yacppdic::Factory<std::unique_ptr<IRandomNumberGenerator>(const uint32_t &seed)>;