17
0
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:
maj00r
2026-09-14 19:11:07 +02:00
parent 1c2f397fc5
commit 2945f3f9b2
4 changed files with 5 additions and 15 deletions

View File

@@ -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();