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/generator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/randomization/generator.cpp') diff --git a/src/randomization/generator.cpp b/src/randomization/generator.cpp index 56fbbf1..6956eda 100644 --- a/src/randomization/generator.cpp +++ b/src/randomization/generator.cpp @@ -1,11 +1,12 @@ #include "generator.hpp" -RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) +RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) noexcept { this->_generator = std::make_unique(seed); } -uint32_t RandomNumberGenerator::in_range(const uint32_t &a, const uint32_t &b) const +uint32_t RandomNumberGenerator::in_range(const uint32_t &a, + const uint32_t &b) const noexcept { auto random_distribution = std::uniform_int_distribution(a, b); -- cgit v1.2.3-18-g5258