Change all hash functions to have a common hash function.

This commit is contained in:
Christoffer Lerno
2025-03-03 20:07:02 +01:00
parent 261bfb97c6
commit 0a905d8458
10 changed files with 11 additions and 10 deletions

View File

@@ -19,6 +19,6 @@ fn void test_fnv32a()
assert ((uint)hash == want, "got: %d, want: %d", hash, want);
// encode
uint encoded = fnv32a::encode(input);
uint encoded = fnv32a::hash(input);
assert (encoded == want, "got: %d, want: %d", encoded, want);
}

View File

@@ -19,6 +19,6 @@ fn void test_fnv64a()
assert ((ulong)hash == want, "got: %d, want: %d", hash, want);
// encode
ulong encoded = fnv64a::encode(input);
ulong encoded = fnv64a::hash(input);
assert (encoded == want, "got: %d, want: %d", encoded, want);
}