[host] app: ensure that rand will be random
This commit is contained in:
1 parent
50e856f823
commit
ecca5720a9
1 file changed
+3
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user