What\'s the most efficient way to convert an md5 hash to a unique integer to perform a modulus operation?
You'll need to define your own hash function that converts an MD5 string into an integer of the desired width. If you want to interpret the MD5 hash as a plain string, you can try the FNV algorithm. It's pretty quick and fairly evenly distributed.