Corrected fnv1 hash algorithm

This commit is contained in:
2022-11-08 19:36:54 +00:00
parent 2af95ec82e
commit 4dcc05e796

View File

@@ -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;