I want to hash a char array in to an int or a long. The resulting value has to adhere to a given precision value. The function I\'ve been using is given below:
MD5 or SHA. There are many open implementations, and the outcome is very unlikely to produce a duplicate result.