1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Slightly better randomization of map template

This commit is contained in:
Ivan Savenko 2024-05-08 17:11:14 +00:00
parent 718d42f0d6
commit 880f692762

View File

@ -543,7 +543,7 @@ void CGameHandler::init(StartInfo *si, Load::ProgressAccumulator & progressTrack
{
if (si->seedToBeUsed == 0)
{
si->seedToBeUsed = static_cast<ui32>(std::time(nullptr));
si->seedToBeUsed = CRandomGenerator::getDefault().nextInt();
}
CMapService mapService;
gs = new CGameState();