MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetRandomSeed

Function SetRandomSeed

src/core/random_func.cpp:65–69  ·  view source on GitHub ↗

* (Re)set the state of the random number generators. * @param seed the new state */

Source from the content-addressed store, hash-verified

63 * @param seed the new state
64 */
65void SetRandomSeed(uint32_t seed)
66{
67 _random.SetSeed(seed);
68 _interactive_random.SetSeed(seed * 0x1234567);
69}
70
71#ifdef RANDOM_DEBUG
72uint32_t Random(const std::source_location location)

Callers 4

StartupOneEngineFunction · 0.85
mainFunction · 0.85
WinMainFunction · 0.85
mainFunction · 0.85

Calls 1

SetSeedMethod · 0.80

Tested by

no test coverage detected