diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2016-10-16 18:33:07 -0500 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2016-10-16 16:33:07 -0700 |
commit | 2d0f69a4ab697bc16c16452f22108a72dc83b97b (patch) | |
tree | 5287ae37a537185c95a6041a32625aec1970bb3b /include/rng.h | |
parent | 12fcc3c7c8462cd554f321cdef38dea7986b998b (diff) |
minor cleanups (#60)
* minor cleanups
* remove indentation on empty lines
* match formatting on if and for statements
Diffstat (limited to 'include/rng.h')
-rw-r--r-- | include/rng.h | 6 |
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 |