From 2d0f69a4ab697bc16c16452f22108a72dc83b97b Mon Sep 17 00:00:00 2001 From: Cameron Hall Date: Sun, 16 Oct 2016 18:33:07 -0500 Subject: minor cleanups (#60) * minor cleanups * remove indentation on empty lines * match formatting on if and for statements --- include/rng.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/rng.h') 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 -- cgit v1.2.3