summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-03-30 08:11:29 +0200
committerTyge Løvset <[email protected]>2023-03-30 08:11:29 +0200
commit32df5677c9906661e91aad294e45a258e2eaab18 (patch)
treeba958c511b42d99a0397797376d48c4a992f7630 /include
parent9a88ddd9cbf4c33664de258bcb5bcef6a746149a (diff)
downloadSTC-modified-32df5677c9906661e91aad294e45a258e2eaab18.tar.gz
STC-modified-32df5677c9906661e91aad294e45a258e2eaab18.zip
removed unneeded code
Diffstat (limited to 'include')
-rw-r--r--include/stc/crand.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/stc/crand.h b/include/stc/crand.h
index f46f2bd5..191d578a 100644
--- a/include/stc/crand.h
+++ b/include/stc/crand.h
@@ -110,13 +110,6 @@ STC_DEF uint64_t crand(void)
STC_DEF double crandf(void)
{ return crand_f64(&crand_global); }
-STC_INLINE uint64_t splitmix64(uint64_t s[1]) {
- uint64_t z = (s[0] += 0x9e3779b97f4a7c15);
- z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9;
- z = (z ^ (z >> 27)) * 0x94d049bb133111eb;
- return z ^ (z >> 31);
-}
-
STC_DEF crand_t crand_init(uint64_t seed) {
/* rng.state[4] must be odd */
crand_t rng = {{seed + 0x26aa069ea2fb1a4d,