示例#1
0
 public static int Hash(byte[] input)
 {
     using (MemoryStream stream = new MemoryStream(input))
     {
         return(MurMurHash3.HashInternal(stream));
     }
 }
示例#2
0
        private int MurMur3Hash(string input)
        {
            var message = Encoding.ASCII.GetBytes(input);

            return(MurMurHash3.Hash(message));
        }