1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Refactor random engine

Introduce RotateEngine and Rct2Engine, FixedSeedSequence and Rct2Seed.
Adhere respectively to requirements `RandomNumberEngine` and `SeedSequence`.
Can be used with C++11 adaptors and distributions in <random>.
This commit is contained in:
Tom Lankhorst
2019-02-01 13:49:46 +01:00
parent 0233795add
commit 6a42a95495
8 changed files with 208 additions and 21 deletions

View File

@@ -41,8 +41,7 @@ public:
void SetUp() override
{
// Use a consistent random seed in every test
gScenarioSrand0 = 0x12345678;
gScenarioSrand1 = 0x87654321;
scenario_rand_seed(0x12345678, 0x87654321);
}
static void TearDownTestCase()