If you need a fast and reliable (read very good to avoid collisions) hashing algorithm (not cryptographic), look no further, Murmur 3 is here to the rescue.
Take it from here, it’s compatible with Unity3D.
Directly translated from the c++ version.
More info on Wikipedia and on this definitive answer on stack overflow