MCPcopy Create free account
hub / github.com/diasurgical/devilution / SetRndSeed

Function SetRndSeed

Source/engine.cpp:903–908  ·  view source on GitHub ↗

* @brief Set the RNG seed * @param s RNG seed */

Source from the content-addressed store, hash-verified

901 * @param s RNG seed
902 */
903void SetRndSeed(int s)
904{
905 SeedCount = 0;
906 sglGameSeed = s;
907 orgseed = s;
908}
909
910/**
911 * @brief Get the current RNG seed

Callers 15

CreateL5DungeonFunction · 0.85
AddStoryBookFunction · 0.85
OperateChestFunction · 0.85
OperateSarcFunction · 0.85
OperateShrineFunction · 0.85
OperateSkelBookFunction · 0.85
OperateBookCaseFunction · 0.85
OperateDecapFunction · 0.85
OperateArmorStandFunction · 0.85
OperateGoatShrineFunction · 0.85
OperateCauldronFunction · 0.85
OperateFountainsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected