MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Tools_Random_Seed

Function Tools_Random_Seed

src/tools.c:259–265  ·  view source on GitHub ↗

* Set the seed for the Tools_Random_256(). * @param seed The seed to set the randomizer to. */

Source from the content-addressed store, hash-verified

257 * @param seed The seed to set the randomizer to.
258 */
259void Tools_Random_Seed(uint32 seed)
260{
261 s_randomSeed[0] = (seed >> 0) & 0xFF;
262 s_randomSeed[1] = (seed >> 8) & 0xFF;
263 s_randomSeed[2] = (seed >> 16) & 0xFF;
264 s_randomSeed[3] = (seed >> 24) & 0xFF;
265}
266
267/**
268 * Set the seed for the LCG randomizer.

Callers 2

Map_CreateLandscapeFunction · 0.85
Mouse_SetMouseModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected