fix: Change hash function

This commit is contained in:
overflowerror 2024-02-11 22:10:32 +01:00
parent e5b1996845
commit 179757fe3a

View file

@ -9,7 +9,7 @@
int hash_string(const char* str) {
int result = 0;
while (str* != '\0') {
result ^= str*;
result = str* + 31 * result;
str++;
}
return result;