mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-31 18:09:04 +01:00
use random_device for local generator
This commit is contained in:
@@ -14,7 +14,7 @@ public:
|
||||
|
||||
|
||||
static UID random() {
|
||||
static thread_local std::mt19937_64 gen{clock_seed()};
|
||||
static thread_local std::mt19937_64 gen{std::random_device{}()};
|
||||
UID u;
|
||||
uint64_t a = gen();
|
||||
uint64_t b = gen();
|
||||
|
||||
Reference in New Issue
Block a user