private static void CheckHash(string hashStr) { var hash = Crc32.Compute(hashStr); if (!Hashes.ContainsKey(hash)) { Hashes.Add(hash, hashStr); } var mm3Hash = MurMurHash3.Hash(hashStr); if (!Mm3Hashes.ContainsKey(mm3Hash)) { Mm3Hashes.Add(mm3Hash, hashStr); } }
public static uint Hash(string val) { var ss = new MemoryStream(Encoding.UTF8.GetBytes(val)); return(MurMurHash3.Hash(ss)); }