diff options
| author | Tyge Løvset <[email protected]> | 2023-03-30 08:11:29 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-03-30 08:11:29 +0200 |
| commit | 32df5677c9906661e91aad294e45a258e2eaab18 (patch) | |
| tree | ba958c511b42d99a0397797376d48c4a992f7630 /include | |
| parent | 9a88ddd9cbf4c33664de258bcb5bcef6a746149a (diff) | |
| download | STC-modified-32df5677c9906661e91aad294e45a258e2eaab18.tar.gz STC-modified-32df5677c9906661e91aad294e45a258e2eaab18.zip | |
removed unneeded code
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/crand.h | 7 |
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, |
