util/rand_xor: make it clear that {,s_}rand_xorshift128plus take *exactly 2* uint64_t

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316>
This commit is contained in:
Eric Engestrom 2019-10-13 08:52:59 +01:00 committed by Marge Bot
parent 576bff5c73
commit f50f26325f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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 */