From cf3bfd60ad03f2feb2ccc62a12fc2922bdc2fb71 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 2 Jun 2022 20:07:09 +0200 Subject: refactor: remove randomization & argument parser --- src/randomization/generator.cpp | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/randomization/generator.cpp (limited to 'src/randomization/generator.cpp') diff --git a/src/randomization/generator.cpp b/src/randomization/generator.cpp deleted file mode 100644 index 49adb97..0000000 --- a/src/randomization/generator.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "generator.hpp" - -RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) noexcept -{ - this->_generator = std::make_unique(seed); -} - -auto RandomNumberGenerator::in_range(const uint32_t &a, const uint32_t &b) const noexcept - -> uint32_t -{ - auto random_distribution = std::uniform_int_distribution(a, b); - - return random_distribution(*this->_generator); -} -- cgit v1.2.3-18-g5258