summaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2018-05-04 17:45:50 -0400
committerGitHub <noreply@github.com>2018-05-04 17:45:50 -0400
commit58200616d55798002046e67a656f5295834455ec (patch)
tree7487b983c8205a97832831b6b6b06cf60534f65a /src/random.c
parent4acbcf5759cb2d5453631dd104e3a845931df66c (diff)
parentcdb5e9e3143b2f1086d8bd4f02a76186c164d02a (diff)
Merge branch 'master' into trader
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;