aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/generator.hpp
blob: 4b002ddaaa30c20032e4f5e9fb0d0ce71bb2ce13 (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]] uint32_t in_range(const uint32_t &a,
									const uint32_t &b) const noexcept override;

private:
	std::unique_ptr<std::mt19937> _generator;
};