blob: 2439949d17f2ab45eb66dcee3bfc06758c0e0f9f (
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]] auto random_seed() const noexcept -> uint32_t override;
private:
const std::shared_ptr<std::random_device> &_random_device;
};
|