aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/generator.hpp
blob: 35bd9eb21064bc4bb47ea9feb078a609854fe2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "interfaces/randomization.hpp"

#include <memory>
#include <random>

class RandomNumberGenerator : public IRandomNumberGenerator
{
public:
	explicit RandomNumberGenerator(const uint32_t &seed);

	[[nodiscard]] uint32_t in_range(const uint32_t &a, const uint32_t &b) const override;

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