public static uint Murmur32(this IEnumerable <byte> value, uint seed) { using (Murmur3 murmur = new Murmur3(seed)) { return(murmur.ComputeHash(value.ToArray()).ToUInt32(0)); } }
public static uint Murmur32(this byte[] value, uint seed) { using (Murmur3 murmur = new Murmur3(seed)) { return(BinaryPrimitives.ReadUInt32LittleEndian(murmur.ComputeHash(value))); } }