mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] app: ensure that rand
will be random
This commit is contained in:
parent
50e856f823
commit
ecca5720a9
@ -721,6 +721,9 @@ int app_main(int argc, char * argv[])
|
|||||||
if (!installCrashHandler(os_getExecutable()))
|
if (!installCrashHandler(os_getExecutable()))
|
||||||
DEBUG_WARN("Failed to install the crash handler");
|
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;
|
app.state = APP_STATE_RUNNING;
|
||||||
ivshmemOptionsInit();
|
ivshmemOptionsInit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user