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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user