diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-06 13:29:10 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 0854ebbc0720c1691f2de661c4ce3467b71746c6 (patch) | |
tree | 6bede8baea394711056db7109f395e71e880e03d /src/interfaces | |
parent | a285df324deb579d262ea7cf484de4d6b11b28e4 (diff) |
refactor: replace unsigned int with uint32_t
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/matrix.hpp | 4 | ||||
-rw-r--r-- | src/interfaces/randomization.hpp | 10 |
2 files changed, 7 insertions, 7 deletions
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 <typename Element> 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); |