1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Merge pull request #3912 from IvanSavenko/fix_template_selection

[1.5.0] Slightly better randomization of map template
This commit is contained in:
Ivan Savenko 2024-05-08 22:43:39 +03:00 committed by GitHub
commit eab4cf946d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();