17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-31 11:09:06 +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

@@ -63,10 +63,6 @@ inline long Round(double const f)
double Random(double a, double b);
int Random(int min, int max);
// Seed for the random engines: the clock, plus a counter so two engines seeded in
// the same second do not come out the same.
std::uint32_t clock_seed();
// The seed a word stands for. A number is taken as it is written; anything else is
// hashed the way Java's String.hashCode does it, so the same word gives the same
// world on every platform and every build - which is the whole point of telling