diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-15 04:13:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-15 04:13:51 -0300 |
commit | 1f3aae21ccc3dfefbd8475ad25125da9b99163b4 (patch) | |
tree | 5e8ed079d8e8ead4fcaa0f47e385647f73021b1c | |
parent | c01601b7efcd506981767c017b94e31cf676f718 (diff) | |
download | serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.gz serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.bz2 serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.xz serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.zip |
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!
-rw-r--r-- | npc/functions/event.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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) |