def hash32(buf, seed):
buf = struct.pack(">I", seed) + buf
hash64 = calcHash(buf)
signedhash64 = ctypes.c_int64(hash64)
return ctypes.c_uint(signedhash64.value).value ^ ctypes.c_uint(signedhash64.value >> 32).value
评论列表
文章目录