[utils] Fix typo in rolling hash function

This commit is contained in:
derrod 2020-05-09 11:00:13 +02:00
parent 3329bdf9af
commit ddd115812b

View file

@ -21,5 +21,5 @@ def get_hash(data):
h = 0
for i in range(len(data)):
h = ((h << 1 | h >> 63) ^ hash_table[c.data[i]]) & 0xffffffffffffffff
h = ((h << 1 | h >> 63) ^ hash_table[data[i]]) & 0xffffffffffffffff
return h