MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / randNext

Method randNext

src/Core/src/Prng.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace OpenLoco::Core
5{
6 uint32_t Prng::randNext()
7 {
8 auto srand0 = _srand_0;
9 auto srand1 = _srand_1;
10 _srand_0 += std::rotr<uint32_t>(srand1 ^ 0x1234567F, 7);
11 _srand_1 = std::rotr<uint32_t>(srand0, 3);
12 return _srand_1;
13 }
14}

Callers 15

isMonthlyProductionUpMethod · 0.45
expandGroundsMethod · 0.45
generateTownNameFunction · 0.45
updateCargoMethod · 0.45
updateMethod · 0.45
generateNewBuildingArgsFunction · 0.45
addRoadJunctionFunction · 0.45
placeRoadBridgeFunction · 0.45
appendToRoadEndFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36