aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/generator.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-06 13:29:10 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit0854ebbc0720c1691f2de661c4ce3467b71746c6 (patch)
tree6bede8baea394711056db7109f395e71e880e03d /src/randomization/generator.hpp
parenta285df324deb579d262ea7cf484de4d6b11b28e4 (diff)
refactor: replace unsigned int with uint32_t
Diffstat (limited to 'src/randomization/generator.hpp')
-rw-r--r--src/randomization/generator.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/randomization/generator.hpp b/src/randomization/generator.hpp
index 3acfc98..35bd9eb 100644
--- a/src/randomization/generator.hpp
+++ b/src/randomization/generator.hpp
@@ -8,10 +8,9 @@
class RandomNumberGenerator : public IRandomNumberGenerator
{
public:
- explicit RandomNumberGenerator(const unsigned int &seed);
+ explicit RandomNumberGenerator(const uint32_t &seed);
- [[nodiscard]] unsigned int in_range(const unsigned int &a,
- const unsigned int &b) const override;
+ [[nodiscard]] uint32_t in_range(const uint32_t &a, const uint32_t &b) const override;
private:
std::unique_ptr<std::mt19937> _generator;