diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-29 17:40:04 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | a039c8ad36779903571419cb06cd052f8fc41512 (patch) | |
tree | 4fdced6941a048bdd4b032fab7012bca00a6028e /src/randomization/generator.cpp | |
parent | acf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff) |
refactor: use trailing return types
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); |