mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Implemented persistent random seed for hero pool
This commit is contained in:
@@ -20,6 +20,11 @@ CRandomGenerator::CRandomGenerator()
|
||||
resetSeed();
|
||||
}
|
||||
|
||||
CRandomGenerator::CRandomGenerator(int seed)
|
||||
{
|
||||
setSeed(seed);
|
||||
}
|
||||
|
||||
void CRandomGenerator::setSeed(int seed)
|
||||
{
|
||||
rand.seed(seed);
|
||||
|
||||
Reference in New Issue
Block a user