From 1f3aae21ccc3dfefbd8475ad25125da9b99163b4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 15 May 2020 04:13:51 -0300 Subject: Generate a new randomness seed everyday, and deploy it for every script. Overrides default randomness from Hercules. (Previously, on my PC, the billions digit didn't vary. Now they vary.) Effects cannot be predicted. Hope for no overflows! --- npc/functions/event.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 41096f344..33892439c 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -282,6 +282,11 @@ OnClock0000: .@m=gettime(GETTIME_MONTH); .@o=gettime(GETTIME_WEEKDAY); // Resets at 0 (sunday) debugmes "A new day begins! Today is %02d/%02d", .@d, .@m; + + // Override the server-wide randomness + resetrng(); + + // Initialize the event core if ($@DEBUG_OD) .@d=$@DEBUG_OD; if ($@DEBUG_OM) -- cgit v1.2.3-70-g09d2