uint Hash(string s) { uint hash = 0; foreach (char c in s) { hash = hash * 33 + (uint) c; } return hash; }