Universalize a single call to srand() on map init (#1422)

This commit is contained in:
Deathreus
2021-03-07 04:54:27 -08:00
committed by GitHub
parent 5bc48b2ab3
commit f9633a5f6f
4 changed files with 3 additions and 6 deletions
-1
View File
@@ -1174,7 +1174,6 @@ void CExtensionManager::OnRootConsoleCommand(const char *cmdname, const ICommand
rootmenu->ConsolePrint(" -> %s", pPlugin->GetFilename());
}
}
srand(static_cast<int>(time(NULL)));
pExt->unload_code = (rand() % 877) + 123; //123 to 999
rootmenu->ConsolePrint("[SM] To verify unloading %s, please use the following: ", pExt->GetFilename());
rootmenu->ConsolePrint("[SM] sm exts unload %d %d", num, pExt->unload_code);