summaryrefslogtreecommitdiff
path: root/src/rng.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-09-08 18:28:00 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2017-09-08 18:28:00 +0200
commitbf11200d4af7265dddce12c40760a08110dd9b07 (patch)
treefb13b300a311f678ab6ee0ba360c7d9533466e2a /src/rng.c
parent854480475807d8bbefbf3fcb03e38bb2ba133ad5 (diff)
() to (void)
Diffstat (limited to 'src/rng.c')
-rw-r--r--src/rng.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rng.c b/src/rng.c
index 6f4f2ce55..ddd149018 100644
--- a/src/rng.c
+++ b/src/rng.c
@@ -4,13 +4,10 @@
// The number 1103515245 comes from the example implementation of rand and srand
// in the ISO C standard.
-extern u32 gRngValue;
-extern u32 gRng2Value;
-
EWRAM_DATA static u8 sUnknown = 0;
EWRAM_DATA static u32 sRandCount = 0;
-u16 Random()
+u16 Random(void)
{
gRngValue = 1103515245 * gRngValue + 24691;
sRandCount++;