summaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-05-07 18:18:00 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-05-07 18:18:00 -0400
commitfd1d75ce378aba3148a1fe9882e17c8cc790d5c2 (patch)
treec8738398572990b0166c268d0eb32439db6eb702 /src/random.c
parent61cc1d55743715a64e793187f63d0f1f7a80b0e0 (diff)
parentf14d2765da6f01eccb08967fd6b22c3bdef2be98 (diff)
Merge branch 'master' into mauville_old_man
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/random.c b/src/random.c
index f2f0ede58..f0b2d9e5f 100644
--- a/src/random.c
+++ b/src/random.c
@@ -7,6 +7,10 @@
EWRAM_DATA static u8 sUnknown = 0;
EWRAM_DATA static u32 sRandCount = 0;
+// IWRAM common
+IWRAM_DATA u32 gRngValue;
+IWRAM_DATA u32 gRng2Value;
+
u16 Random(void)
{
gRngValue = 1103515245 * gRngValue + 24691;