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/interfaces/randomization.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interfaces/randomization.hpp') diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp index 211360e..eb8bd30 100644 --- a/src/interfaces/randomization.hpp +++ b/src/interfaces/randomization.hpp @@ -8,7 +8,7 @@ class ISeedGenerator public: virtual ~ISeedGenerator() noexcept = default; - [[nodiscard]] virtual uint32_t random_seed() const noexcept = 0; + [[nodiscard]] virtual auto random_seed() const noexcept -> uint32_t = 0; }; using ISeedGeneratorFactory = std::shared_ptr (*)(); @@ -25,8 +25,8 @@ public: * @param a A number lower than b * @param b A number greater than a */ - [[nodiscard]] virtual uint32_t in_range(const uint32_t &a, - const uint32_t &b) const noexcept = 0; + [[nodiscard]] virtual auto in_range(const uint32_t &a, + const uint32_t &b) const noexcept -> uint32_t = 0; }; using IRandomNumberGeneratorFactory = -- cgit v1.2.3-18-g5258