diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-13 19:29:19 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-13 19:29:19 -0400 |
commit | 64ffa8f9639c0dae2075d722fb12610e42b2129f (patch) | |
tree | abb297307bf48a399052aa0c6f7d1db7498b9cc3 /src/rng.c | |
parent | c2e31f0618e19a1edad6bfface74901c8cd405f7 (diff) | |
parent | 78009a835f840864b3d30af00c65a745f75b80fa (diff) |
Merge branch 'master' into field_map_obj
Diffstat (limited to 'src/rng.c')
-rw-r--r-- | src/rng.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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++; |