aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/seed_generator.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 18:02:18 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commitdc6222611ad14a33f642396558ba84ecba9d6605 (patch)
treed759020233b66be62c5539209a03842d283b67a9 /src/randomization/seed_generator.hpp
parentdbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff)
perf: add noexcept almost everywhere
Diffstat (limited to 'src/randomization/seed_generator.hpp')
-rw-r--r--src/randomization/seed_generator.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/randomization/seed_generator.hpp b/src/randomization/seed_generator.hpp
index 1447a8c..087ad6b 100644
--- a/src/randomization/seed_generator.hpp
+++ b/src/randomization/seed_generator.hpp
@@ -8,9 +8,10 @@
class SeedGenerator : public ISeedGenerator
{
public:
- explicit SeedGenerator(const std::shared_ptr<std::random_device> &random_device);
+ explicit SeedGenerator(
+ const std::shared_ptr<std::random_device> &random_device) noexcept;
- [[nodiscard]] uint32_t random_seed() const override;
+ [[nodiscard]] uint32_t random_seed() const noexcept override;
private:
const std::shared_ptr<std::random_device> &_random_device;