Re:String.hashCode() is plenty unique
by dahart on Saturday August 11, 2018 @04:40AM
(#17738931)
Your interpretation is generous since the original article says explicitly: “some hashes are worse than others. You can expect String to be fairly poor.”
The problem / error is the claim that the collision demonstration with short strings somehow proves that String is much worse than other hash functions, without testing other hash function, and without understanding that the theoretical ideal predicts a lot of collisions with short strings.
The problem / error is the claim that the collision demonstration with short strings somehow proves that String is much worse than other hash functions, without testing other hash function, and without understanding that the theoretical ideal predicts a lot of collisions with short strings.