[host] app: ensure that rand will be random

This commit is contained in:
Geoffrey McRae 2022-11-07 13:26:52 +11:00
parent 50e856f823
commit ecca5720a9

View File

@ -721,6 +721,9 @@ int app_main(int argc, char * argv[])
if (!installCrashHandler(os_getExecutable()))
DEBUG_WARN("Failed to install the crash handler");
// make sure rng is actually seeded for LGMP
srand((unsigned)time(NULL));
app.state = APP_STATE_RUNNING;
ivshmemOptionsInit();