Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
void ps_srand(uint32_t seed) { ps_holdrand = static_cast<int32_t>(seed); }
44
45
int32_t ps_rand(void) { return (((ps_holdrand = ps_holdrand * 214013L + 2531011L) >> 16) & 0x7fff); }
Callers
15
RotateModelPoints
Function · 0.85
vm_MakeRandomVector
Function · 0.85
DoWallEffects
Function · 0.85
collide_weapon_and_wall
Function · 0.85
collide_generic_and_weapon
Function · 0.85
bm_MakeBad
Function · 0.85
ObjInitGeneric
Function · 0.85
GameFrame
Function · 0.85
DoSplinterFrame
Function · 0.85
randf
Function · 0.85
ProcessASP
Function · 0.85
osipf_AIGetRoomPathPoint
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected