From 4dcc05e796723134b36dd8029e5f1b156c7b065c Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Tue, 8 Nov 2022 19:36:54 +0000 Subject: [PATCH] Corrected fnv1 hash algorithm --- source/literal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/literal.c b/source/literal.c index 675d2c6..26382dd 100644 --- a/source/literal.c +++ b/source/literal.c @@ -15,7 +15,7 @@ static unsigned int hashString(const char* string, int length) { for (int i = 0; i < length; i++) { hash *= string[i]; - hash *= 16777619; + hash ^= 16777619; } return hash;