From 0854ebbc0720c1691f2de661c4ce3467b71746c6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Mar 2022 13:29:10 +0100 Subject: refactor: replace unsigned int with uint32_t --- src/interfaces/randomization.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/interfaces/randomization.hpp') 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 (*)(); /** - * 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 (*)(const unsigned int &seed); + std::shared_ptr (*)(const uint32_t &seed); -- cgit v1.2.3-18-g5258