aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/matrix.hpp4
-rw-r--r--src/interfaces/randomization.hpp10
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);