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

+1 -1
View File
@@ -149,7 +149,7 @@ void botcmdTickDistMode(struct chrdata *chr)
if (!insight) {
newmode = BOTDISTMODE_ADVANCE;
aibot->distoverrideprop = targetprop;
aibot->distoverridetimer60 = TICKS(20) + (random() % TICKS(120));
aibot->distoverridetimer60 = TICKS(20) + (rngRandom() % TICKS(120));
} else if (aibot->distoverrideprop) {
if (g_Vars.lvupdate60 < aibot->distoverridetimer60) {
aibot->distoverridetimer60 -= g_Vars.lvupdate60;