From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/randomization/generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/randomization/generator.cpp') 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(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(a, b); -- cgit v1.2.3-18-g5258