diff --git a/clhash.c b/clhash.c index 5eddfa5f..fc854b1d 100644 --- a/clhash.c +++ b/clhash.c @@ -447,5 +447,9 @@ void * get_random_key_for_clhash(uint64_t seed1, uint64_t seed2) { a64[128] = xorshift128plus(&k); a64[129] = xorshift128plus(&k); } + while (!a64[2] && !a64[3]) { + a64[2] = xorshift128plus(&k); + a64[3] = xorshift128plus(&k); + } return (void*)a64; }