No hashing algorithm will guarantee you that there won't be colissions.
All you can do to reduce the occurrance of colissions is to either increase the length of the hash key (and the length of the hash itself) and/or increase the amount of data used to calculate the hash.
Of course either will dramatically increase the amount of time needed to calculate the hash, which may or may not be acceptable.
So the question becomes: how unique do you want your hash to be and why?
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
you can't use hashes to detect duplicates, because as I said they're never guaranteed to be different for different data.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337