diff options
Diffstat (limited to 'src/randomization/seed_generator.cpp')
-rw-r--r-- | src/randomization/seed_generator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/randomization/seed_generator.cpp b/src/randomization/seed_generator.cpp index 5d51e18..3afa275 100644 --- a/src/randomization/seed_generator.cpp +++ b/src/randomization/seed_generator.cpp @@ -1,11 +1,12 @@ #include "seed_generator.hpp" -SeedGenerator::SeedGenerator(const std::shared_ptr<std::random_device> &random_device) +SeedGenerator::SeedGenerator( + const std::shared_ptr<std::random_device> &random_device) noexcept : _random_device(random_device) { } -uint32_t SeedGenerator::random_seed() const +uint32_t SeedGenerator::random_seed() const noexcept { return (*_random_device)(); } |