port: rename random to rngRandom to avoid conflicts with libc

This commit is contained in:
fgsfds committed 2024-11-17 11:03:57 +01:00
1 parent d747588323
commit 06dcbcc1b1
55 files changed
+459 -459

No files matched your search

+2 -2
View File
@@ -1427,7 +1427,7 @@ Gfx *lvRender(Gfx *gdl)
g_CutsceneStaticTimer -= g_Vars.diffframe60;
if (g_CutsceneStaticTimer < 0) {
g_CutsceneStaticTimer = random() % TICKS(200) + TICKS(40);
g_CutsceneStaticTimer = rngRandom() % TICKS(200) + TICKS(40);
g_CutsceneStaticActive = false;
}
@@ -1444,7 +1444,7 @@ Gfx *lvRender(Gfx *gdl)
// Consider a single frame of static, separate
// to the main static above
if (random() % 60 == 1) {
if (rngRandom() % 60 == 1) {
cutscenestatic = 255;
sndStart(var80095200, SFX_INFIL_STATIC_SHORT, NULL, -1, -1, -1, -1, -1);
}