1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Implemented persistent random seed for hero pool

This commit is contained in:
Ivan Savenko
2023-07-11 19:23:14 +03:00
parent a2d2ecc96f
commit 539c508870
4 changed files with 32 additions and 13 deletions

View File

@@ -30,6 +30,9 @@ public:
/// current thread ID.
CRandomGenerator();
/// Seeds the generator with provided initial seed
explicit CRandomGenerator(int seed);
void setSeed(int seed);
/// Resets the seed to the product of the current time in milliseconds and the