aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/generator.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 17:40:04 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commita039c8ad36779903571419cb06cd052f8fc41512 (patch)
tree4fdced6941a048bdd4b032fab7012bca00a6028e /src/randomization/generator.hpp
parentacf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff)
refactor: use trailing return types
Diffstat (limited to 'src/randomization/generator.hpp')
-rw-r--r--src/randomization/generator.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/randomization/generator.hpp b/src/randomization/generator.hpp
index 4b002dd..98acfde 100644
--- a/src/randomization/generator.hpp
+++ b/src/randomization/generator.hpp
@@ -10,8 +10,8 @@ class RandomNumberGenerator : public IRandomNumberGenerator
public:
explicit RandomNumberGenerator(const uint32_t &seed) noexcept;
- [[nodiscard]] uint32_t in_range(const uint32_t &a,
- const uint32_t &b) const noexcept override;
+ [[nodiscard]] auto in_range(const uint32_t &a,
+ const uint32_t &b) const noexcept -> uint32_t override;
private:
std::unique_ptr<std::mt19937> _generator;