diff --git a/src/lib/ndpi_hash.c b/src/lib/ndpi_hash.c index 426b81605..7302c32a2 100644 --- a/src/lib/ndpi_hash.c +++ b/src/lib/ndpi_hash.c @@ -48,16 +48,15 @@ u_int32_t ndpi_quick_hash(const unsigned char *str, u_int str_len) { /* ******************************************************************** */ -/* Based on Daniel Lemire code */ u_int64_t ndpi_quick_hash64(const char *str, u_int str_len) { - u_int64_t h = 0; + u_int64_t h = 177; u_int i; - + for(i=0; i= 0; len--) { hash += str[len]; hash += (hash << 10);