diff options
Diffstat (limited to 'src/randomization/generator.cpp')
-rw-r--r-- | src/randomization/generator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/randomization/generator.cpp b/src/randomization/generator.cpp index 6956eda..2febf16 100644 --- a/src/randomization/generator.cpp +++ b/src/randomization/generator.cpp @@ -5,8 +5,8 @@ RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) noexcept this->_generator = std::make_unique<std::mt19937>(seed); } -uint32_t RandomNumberGenerator::in_range(const uint32_t &a, - const uint32_t &b) const noexcept +auto RandomNumberGenerator::in_range(const uint32_t &a, + const uint32_t &b) const noexcept -> uint32_t { auto random_distribution = std::uniform_int_distribution<uint32_t>(a, b); |