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

Function RestoreRandomSeeds

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

* Restores previously saved seeds * @param storage Storage where SaveRandomSeeds() stored th seeds */

Source from the content-addressed store, hash-verified

63 * @param storage Storage where SaveRandomSeeds() stored th seeds
64 */
65inline void RestoreRandomSeeds(const SavedRandomSeeds &storage)
66{
67 _random = storage.random;
68 _interactive_random = storage.interactive_random;
69}
70
71void SetRandomSeed(uint32_t seed);
72#ifdef RANDOM_DEBUG

Callers 3

CmdAutoreplaceVehicleFunction · 0.85
CmdBuildVehicleFunction · 0.85
StartupOneEngineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected