aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/seed_generator.hpp
blob: 1447a8caa3afbb4c67edc288cdcc67a77b67ed32 (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 SeedGenerator : public ISeedGenerator
{
public:
	explicit SeedGenerator(const std::shared_ptr<std::random_device> &random_device);

	[[nodiscard]] uint32_t random_seed() const override;

private:
	const std::shared_ptr<std::random_device> &_random_device;
};