blob: 98acfdec1e1f6d626c63db0a46fb7c4f56bc047b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "interfaces/randomization.hpp"
#include <memory>
#include <random>
class RandomNumberGenerator : public IRandomNumberGenerator
{
public:
explicit RandomNumberGenerator(const uint32_t &seed) noexcept;
[[nodiscard]] auto in_range(const uint32_t &a,
const uint32_t &b) const noexcept -> uint32_t override;
private:
std::unique_ptr<std::mt19937> _generator;
};
|