MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ps_rand

Function ps_rand

misc/psrand.cpp:45–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43void ps_srand(uint32_t seed) { ps_holdrand = static_cast<int32_t>(seed); }
44
45int32_t ps_rand(void) { return (((ps_holdrand = ps_holdrand * 214013L + 2531011L) >> 16) & 0x7fff); }

Callers 15

RotateModelPointsFunction · 0.85
vm_MakeRandomVectorFunction · 0.85
DoWallEffectsFunction · 0.85
collide_weapon_and_wallFunction · 0.85
bm_MakeBadFunction · 0.85
ObjInitGenericFunction · 0.85
GameFrameFunction · 0.85
DoSplinterFrameFunction · 0.85
randfFunction · 0.85
ProcessASPFunction · 0.85
osipf_AIGetRoomPathPointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected