1
0
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:
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

@@ -20,6 +20,11 @@ CRandomGenerator::CRandomGenerator()
resetSeed();
}
CRandomGenerator::CRandomGenerator(int seed)
{
setSeed(seed);
}
void CRandomGenerator::setSeed(int seed)
{
rand.seed(seed);