17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

Improve random engine entropy and clean up random engine initialization

This commit is contained in:
2026-09-14 19:26:24 +02:00
parent 1c2f397fc5
commit 788135cc2d
4 changed files with 23 additions and 13 deletions

View File

@@ -321,7 +321,7 @@ int eu07_application::init(int Argc, char *Argv[])
}
if (!Global.random_seed)
Global.random_seed = clock_seed();
Global.random_seed = true_random_seed();
Global.random_engine.seed(Global.random_seed);
// configure the OS console according to Globals.ShowSystemConsole.
@@ -1432,7 +1432,7 @@ int eu07_application::init_data()
int eu07_application::init_modes()
{
Global.local_random_engine.seed(clock_seed());
Global.local_random_engine.seed(true_random_seed());
if ((!Global.network_servers.empty() || Global.network_client) && Global.SceneryFile.empty())
{