summaryrefslogtreecommitdiff
path: root/src/time_events.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-02-14 16:12:35 -0500
committerhuderlem <huderlem@gmail.com>2020-02-25 12:54:08 -0600
commitfaf0ba8662ecd54b4160920097074aad3c2dc8cb (patch)
treec494ba3ef5757776bdcf7f66698d764c8f5ac43a /src/time_events.c
parent6eb44dc50714f184cea4453704636370263e7efc (diff)
Use macro for randomization with ISO value
Diffstat (limited to 'src/time_events.c')
-rw-r--r--src/time_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time_events.c b/src/time_events.c
index bd51f0c2d..3f56d3ab5 100644
--- a/src/time_events.c
+++ b/src/time_events.c
@@ -33,7 +33,7 @@ void UpdateMirageRnd(u16 days)
s32 rnd = GetMirageRnd();
while (days)
{
- rnd = 1103515245 * rnd + 12345;
+ rnd = ISO_RANDOMIZE2(rnd);
days--;
}
SetMirageRnd(rnd);