summaryrefslogtreecommitdiff
path: root/rand.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-07 21:54:31 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-07 21:54:31 -0500
commit5949f9b9cd7d6e416716b51c2cae0f4336cd82c5 (patch)
tree105e5b3fd8892e7e05956d28c5fa9e830452fa7b /rand.c
parent5f3c455003272bfca6769afcaaade1ca365038d9 (diff)
put small functions together and cleaned up float exporting
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/rand.c b/rand.c
deleted file mode 100644
index 7a9fa4e..0000000
--- a/rand.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- Copyright (C) 2019, 2020 Leo Tenenbaum.
- This file is part of toc. toc is distributed under version 3 of the GNU General Public License, without any warranty whatsoever.
- You should have received a copy of the GNU General Public License along with toc. If not, see <https://www.gnu.org/licenses/>.
-*/
-static U32 rand_u32(U32 seed) {
- U64 seed64 = (U64)seed;
- return (U32)((seed64 * 0x832f0fda4e1a8642 + 0x41d49cd5459a2ab4) >> 32);
-}