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

Function GetRndSeed

Source/engine.cpp:914–919  ·  view source on GitHub ↗

* @brief Get the current RNG seed * @return RNG seed */

Source from the content-addressed store, hash-verified

912 * @return RNG seed
913 */
914int GetRndSeed()
915{
916 SeedCount++;
917 sglGameSeed = static_cast<unsigned int>(RndMult) * sglGameSeed + RndInc;
918 return abs(sglGameSeed);
919}
920
921/**
922 * @brief Main RNG function

Callers 15

InitObjectsFunction · 0.85
AddChestFunction · 0.85
AddSarcFunction · 0.85
AddBarrelFunction · 0.85
AddBookcaseFunction · 0.85
AddBookstandFunction · 0.85
AddBloodFtnFunction · 0.85
AddPurifyingFountainFunction · 0.85
AddArmorStandFunction · 0.85
AddGoatShrineFunction · 0.85
AddCauldronFunction · 0.85
AddMurkyFountainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected