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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user