aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/randomization.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/interfaces/randomization.hpp
parentacf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff)
refactor: use trailing return types
Diffstat (limited to 'src/interfaces/randomization.hpp')
-rw-r--r--src/interfaces/randomization.hpp6
1 files changed, 3 insertions, 3 deletions
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<ISeedGenerator> (*)();
@@ -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 =