Re:The Future's Pretty Cool, or Why I Love Ruby
by erikpukinskis on Wednesday April 28, 2010 @02:59PM
(#1302369)
> they really shouldn't collide for something as trivial as ...
Why not? Hashes produce collisions. If you don't want collisions don't use hashes. Or if you want a hash function that doesn't produce collisions for your specific data type, write one. It's not hard.
Relying on a generic hash function to never create a collision is just poor engineering on your part.
Why not? Hashes produce collisions. If you don't want collisions don't use hashes. Or if you want a hash function that doesn't produce collisions for your specific data type, write one. It's not hard.
Relying on a generic hash function to never create a collision is just poor engineering on your part.