summaryrefslogtreecommitdiff
path: root/src/engine/random.c
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2018-02-18 19:59:51 -0600
committercamthesaxman <cameronghall@cox.net>2018-02-18 19:59:51 -0600
commitdaa05c1b7c5e079ad8554e88a290e07b333bd2db (patch)
treef635e307268f6e6027423369d221e2adf32b438d /src/engine/random.c
parent2e21a867487e2187a954a351f775bd3f3a9535b1 (diff)
remove subdirectories
Diffstat (limited to 'src/engine/random.c')
-rw-r--r--src/engine/random.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/engine/random.c b/src/engine/random.c
deleted file mode 100644
index 8f82b722f..000000000
--- a/src/engine/random.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "global.h"
-#include "random.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;
-}