From dc6222611ad14a33f642396558ba84ecba9d6605 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Mar 2022 18:02:18 +0100 Subject: perf: add noexcept almost everywhere --- src/randomization/seed_generator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/randomization/seed_generator.cpp') 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 &random_device) +SeedGenerator::SeedGenerator( + const std::shared_ptr &random_device) noexcept : _random_device(random_device) { } -uint32_t SeedGenerator::random_seed() const +uint32_t SeedGenerator::random_seed() const noexcept { return (*_random_device)(); } -- cgit v1.2.3-18-g5258