Skip to content

Commit

Permalink
hashlib: fudge always
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Oct 18, 2024
1 parent f1ab13f commit 8eef00c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/hashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ class Hasher {
[[nodiscard]]
static uint32_t mkhash(uint32_t a, uint32_t b) {
uint32_t hash = ((a << 5) + a) ^ b;
if (fudge)
hash = fudge ^ mkhash_xorshift(hash);
hash = mkhash_xorshift(fudge ^ hash);
return hash;
}
public:
Expand Down

0 comments on commit 8eef00c

Please sign in to comment.