summaryrefslogtreecommitdiff
path: root/src/wild_encounter.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/wild_encounter.c
parent6eb44dc50714f184cea4453704636370263e7efc (diff)
Use macro for randomization with ISO value
Diffstat (limited to 'src/wild_encounter.c')
-rw-r--r--src/wild_encounter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wild_encounter.c b/src/wild_encounter.c
index 52aac17f3..21f871751 100644
--- a/src/wild_encounter.c
+++ b/src/wild_encounter.c
@@ -127,12 +127,9 @@ static bool8 CheckFeebas(void)
return FALSE;
}
-// The number 1103515245 comes from the example implementation of rand and srand
-// in the ISO C standard.
-
static u16 FeebasRandom(void)
{
- sFeebasRngValue = (1103515245 * sFeebasRngValue) + 12345;
+ sFeebasRngValue = ISO_RANDOMIZE2(sFeebasRngValue);
return sFeebasRngValue >> 16;
}