mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-02-01 15:53:32 +00:00
[host] app: ensure that rand
will be random
This commit is contained in:
parent
50e856f823
commit
ecca5720a9
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue