aboutsummaryrefslogtreecommitdiff
path: root/core/hash
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-07-25 12:00:24 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-07-25 12:00:24 +0200
commit3a7e4873cdd392a8aa035afaac31ef0987bfbb38 (patch)
treee818f2e5729ad593590c4cb446840fd0b03a3de0 /core/hash
parent315cd51f7652baa324086f82fef71eb6afd47e57 (diff)
Fix #5498
Also: - Expands `tests/core/hash` - Fixes bug found in `#hash(s, "murmur64")`
Diffstat (limited to 'core/hash')
-rw-r--r--core/hash/hash.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hash/hash.odin b/core/hash/hash.odin
index 45f524d8a..6c048c05b 100644
--- a/core/hash/hash.odin
+++ b/core/hash/hash.odin
@@ -127,7 +127,7 @@ jenkins :: proc "contextless" (data: []byte, seed := u32(0)) -> u32 {
}
@(optimization_mode="favor_size")
-murmur32 :: proc "contextless" (data: []byte, seed := u32(0)) -> u32 {
+murmur32 :: proc "contextless" (data: []byte, seed := u32(0x9747b28c)) -> u32 {
c1_32: u32 : 0xcc9e2d51
c2_32: u32 : 0x1b873593