summaryrefslogtreecommitdiff
path: root/src/engine/rng.c
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-11-26 02:01:36 -0600
committercamthesaxman <cameronghall@cox.net>2017-11-26 02:01:36 -0600
commitd373f41c2cbd2dc71ca2287b179c7c8777b9eb02 (patch)
tree9f39e33187265d606236e2d7a7cb2ddb2009b575 /src/engine/rng.c
parent20c5936f0c9fd15d34fce0409e8835282ea2fcaf (diff)
rename rng.c to random.c
Diffstat (limited to 'src/engine/rng.c')
-rw-r--r--src/engine/rng.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/engine/rng.c b/src/engine/rng.c
deleted file mode 100644
index 7d4b5600e..000000000
--- a/src/engine/rng.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "global.h"
-#include "rng.h"
-
-// The number 1103515245 comes from the example implementation of rand and srand
-// in the ISO C standard.
-
-u32 gRngValue;
-
-u16 Random(void)
-{
- gRngValue = 1103515245 * gRngValue + 24691;
- return gRngValue >> 16;
-}
-
-void SeedRng(u16 seed)
-{
- gRngValue = seed;
-}