Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RuleRandom.cpp
Go to the documentation of this file.
1#include "RuleRandom.hpp"
2
3#include <chrono>
4
6{
7 namespace
8 {
9 std::mt19937 globalGenerator;
10 }
11
13 {
14 const auto seed =
15 static_cast<std::mt19937::result_type>(
16 std::chrono::steady_clock::now()
17 .time_since_epoch()
18 .count()
19 );
20
22 }
23
24 void seed(std::uint32_t value)
25 {
27 }
28
29
30 std::mt19937& generator()
31 {
32 return globalGenerator;
33 }
34}
35
unsigned index
std::uint16_t value
Definition Timers.cpp:16
std::mt19937 & generator()
void seed(std::uint32_t value)