Exemple #1
0
 public static uint Murmur32(this IEnumerable <byte> value, uint seed)
 {
     using (Murmur3 murmur = new Murmur3(seed))
     {
         return(murmur.ComputeHash(value.ToArray()).ToUInt32(0));
     }
 }
 /// <summary>
 /// Murmur3 hash function
 /// </summary>
 /// <param name="message">Message bytearray</param>
 /// <param name="seed">Seed</param>
 /// <returns>Hash bytearray</returns>
 public override byte[] Murmur3(byte[] message, uint seed)
 {
     using (var murmur = new Murmur3(seed))
     {
         return(murmur.ComputeHash(message));
     }
 }