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
@@ -2067,7 +2067,7 @@ void setupCreateProps(s32 stagenum)
}
for (i = 0; i < maxsimulants; i++) {
slotnum = random() % maxsimulants;
slotnum = rngRandom() % maxsimulants;
while (slotsdone[slotnum]) {
slotnum = (slotnum + 1) % maxsimulants;
@@ -2227,7 +2227,7 @@ void setupCreateProps(s32 stagenum)
// for storing OBJHFLAG_CONDITIONALSCENERY, which is required
// for a match. Any function call would work.
if (alwayszero) {
random();
rngRandom();
}
if (expoffset) {