diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/std/hash.c | 2 |
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; } |