Low order hashes

Michelle Long HappyDance321 at gmail.com
Tue Jan 1 19:40:47 UTC 2019


I need to hash a few strings to a byte, short, or int. hashOf 
works for int only on x86.

What would be a nice way to accomplish this? Collisions are not 
good but not catastrophic. Mainly I need a unique ID to emulate 
enums. I might just chop off the extra bits or mash them up 
somehow and it will probably work but hoping for something more 
solid.



More information about the Digitalmars-d-learn mailing list