diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-14 18:02:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | dc6222611ad14a33f642396558ba84ecba9d6605 (patch) | |
tree | d759020233b66be62c5539209a03842d283b67a9 /src/randomization/seed_generator.cpp | |
parent | dbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff) |
perf: add noexcept almost everywhere
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)(); } |