mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
Merge branch 'random-seed-entropy' of https://github.com/MaSzyna-EU07/maszyna into random-seed-entropy
This commit is contained in:
@@ -320,9 +320,11 @@ int eu07_application::init(int Argc, char *Argv[])
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// the run's seed, settled once and kept in Globals: the engines come out of it
|
||||||
if (!Global.random_seed)
|
if (!Global.random_seed)
|
||||||
Global.random_seed = true_random_seed();
|
Global.random_seed = true_random_seed();
|
||||||
Global.random_engine.seed(Global.random_seed);
|
Global.random_engine.seed(Global.random_seed);
|
||||||
|
Global.local_random_engine.seed(Global.random_seed);
|
||||||
|
|
||||||
// configure the OS console according to Globals.ShowSystemConsole.
|
// configure the OS console according to Globals.ShowSystemConsole.
|
||||||
// must run AFTER init_settings (so the ini-loaded value is honoured) and
|
// must run AFTER init_settings (so the ini-loaded value is honoured) and
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ Copyright (C) 2007-2014 Maciej Cierniak
|
|||||||
//#include <sys/types.h>
|
//#include <sys/types.h>
|
||||||
//#include <sys/stat.h>
|
//#include <sys/stat.h>
|
||||||
#include <charconv>
|
#include <charconv>
|
||||||
#include <ctime>
|
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
//#ifndef WIN32
|
//#ifndef WIN32
|
||||||
//#include <unistd.h>
|
//#include <unistd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user