forked from Ports/perfect_dark
port: rename random to rngRandom to avoid conflicts with libc
This commit is contained in:
1 parent
d747588323
commit
06dcbcc1b1
55 files changed
+459
-459
No files matched your search
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user