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.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp
index 12f6486..a17efb4 100644
--- a/src/interfaces/randomization.hpp
+++ b/src/interfaces/randomization.hpp
@@ -7,13 +7,13 @@ class ISeedGenerator
public:
virtual ~ISeedGenerator() = default;
- [[nodiscard]] virtual unsigned int random_seed() const = 0;
+ [[nodiscard]] virtual uint32_t random_seed() const = 0;
};
using ISeedGeneratorFactory = std::shared_ptr<ISeedGenerator> (*)();
/**
- * Pseudo-random unsigned integer generator.
+ * Pseudo-random uint32_teger generator.
*/
class IRandomNumberGenerator
{
@@ -26,9 +26,9 @@ public:
* @param a A number lower than b
* @param b A number greater than a
*/
- [[nodiscard]] virtual unsigned int in_range(const unsigned int &a,
- const unsigned int &b) const = 0;
+ [[nodiscard]] virtual uint32_t in_range(const uint32_t &a,
+ const uint32_t &b) const = 0;
};
using IRandomNumberGeneratorFactory =
- std::shared_ptr<IRandomNumberGenerator> (*)(const unsigned int &seed);
+ std::shared_ptr<IRandomNumberGenerator> (*)(const uint32_t &seed);