blob: 087ad6b9fd733134b7bbc8d3c52e4060ceb372d9 (
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 SeedGenerator : public ISeedGenerator
{
public:
explicit SeedGenerator(
const std::shared_ptr<std::random_device> &random_device) noexcept;
[[nodiscard]] uint32_t random_seed() const noexcept override;
private:
const std::shared_ptr<std::random_device> &_random_device;
};
|