Skip to content

Commit

Permalink
clhash: avoid more bad seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Sep 25, 2024
1 parent a9118d3 commit fdc6708
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit fdc6708

Please sign in to comment.