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/matrix.hpp | 4 ++-- src/interfaces/randomization.hpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/interfaces') diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp index 8242b18..e0a92bf 100644 --- a/src/interfaces/matrix.hpp +++ b/src/interfaces/matrix.hpp @@ -36,12 +36,12 @@ public: /** * Returns the number of rows the matrix has. */ - [[nodiscard]] virtual unsigned int rows() const = 0; + [[nodiscard]] virtual uint32_t rows() const = 0; /** * Returns the number of columns the matrix has. */ - [[nodiscard]] virtual unsigned int columns() const = 0; + [[nodiscard]] virtual uint32_t columns() const = 0; }; template 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