summaryrefslogtreecommitdiff
path: root/include/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rng.h')
-rw-r--r--include/rng.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rng.h b/include/rng.h
index ea600ea41..dec8c6e26 100644
--- a/include/rng.h
+++ b/include/rng.h
@@ -3,7 +3,13 @@
extern u32 gRngValue;
+//Returns a 16-bit pseudorandom number
u16 Random(void);
+
+//Returns a 32-bit pseudorandom number
+#define Random32() (Random() | (Random() << 16))
+
+//Sets the initial seed value of the pseudorandom number generator
void SeedRng(u16 seed);
#endif // GUARD_RNG_H