//
// getNextRandom from 0x2e5f04 to 0x2e5f28 (36 bytes)
//
// 2 xrefs:
// > drawLightning @ 0x2e5fa2
// > drawLightning @ 0x2e5fe8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned int __fastcall getNextRandom(unsigned __int64 *a1)
{
unsigned __int64 v1; // r2
v1 = 1103515245 * *a1 + 12345;
*a1 = v1;
return WORD1(v1) & 0x7FFF;
}