aboutsummaryrefslogtreecommitdiff
path: root/src/std
diff options
context:
space:
mode:
Diffstat (limited to 'src/std')
-rw-r--r--src/std/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/hash.c b/src/std/hash.c
index 603149a..8bd08d9 100644
--- a/src/std/hash.c
+++ b/src/std/hash.c
@@ -5,7 +5,7 @@ usize amal_hash_string(const u8 *data, usize size) {
result = 0xdec05eba;
while(size) {
- result ^= *data;
+ result = ((result << 5) + result) ^ *data;
++data;
--size;
}