rewrite(phase4): fix wrong hash

This commit is contained in:
khtsly 2026-02-13 19:31:40 +07:00
parent 04e7f65a3a
commit 219b62b6d2

View file

@ -15,7 +15,7 @@ return function(name: string): number
local b: number = hash
for i = 1, #name do
b = bit32.bxor(bit32.lshift(hash, 5) + b, string.byte(name, i))
b = bit32.bxor(bit32.lshift(b, 5) + b, string.byte(name, i))
end
local reduced = bit32.band(b, MAX_VALUE)