From 8eef00c4c45b9b1541db434d03c79e32f4ddcefb Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 18 Oct 2024 22:59:27 +0200 Subject: [PATCH] hashlib: fudge always --- kernel/hashlib.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 4ed1a5605b8..13b53e38332 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -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: