From 784cfbe5d88042756dac21fec4b6dac5f1db414e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 8 Mar 2019 00:47:10 +0100 Subject: Modify hash algorithm --- src/std/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3