diff options
author | Eric Engestrom <[email protected]> | 2019-10-13 08:52:59 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-16 12:05:37 +0000 |
commit | f50f26325f8df7e076a0ffd2196eab1c36ff07ae (patch) | |
tree | 219295648e6343af6b9f015ae914281f2fba632f /src/util | |
parent | 576bff5c73ff217b15900982640dbf8f184569d5 (diff) |
util/rand_xor: make it clear that {,s_}rand_xorshift128plus take *exactly 2* uint64_t
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emmanuel Gil Peyrot <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/rand_xor.c | 4 | ||||
-rw-r--r-- | src/util/rand_xor.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c index 31612d57660..b34b4e40bfa 100644 --- a/src/util/rand_xor.c +++ b/src/util/rand_xor.c @@ -41,7 +41,7 @@ * to the public domain. */ uint64_t -rand_xorshift128plus(uint64_t *seed) +rand_xorshift128plus(uint64_t seed[2]) { uint64_t *s = seed; @@ -55,7 +55,7 @@ rand_xorshift128plus(uint64_t *seed) } void -s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed) +s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed) { if (!randomised_seed) goto fixed_seed; diff --git a/src/util/rand_xor.h b/src/util/rand_xor.h index 532d549bcda..b55598f228a 100644 --- a/src/util/rand_xor.h +++ b/src/util/rand_xor.h @@ -29,9 +29,9 @@ #include <stdbool.h> uint64_t -rand_xorshift128plus(uint64_t *seed); +rand_xorshift128plus(uint64_t seed[2]); void -s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed); +s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed); #endif /* RAND_XOR_H */ |