• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Hash collisions

AtW

I post more often than I breathe
Joined
Jul 6, 2005
Messages
63,203
Likes received
5,553
Thanks received
1,318
Pissed off due to discovering that 64-bit hash function that I expected to have nil collisions in my lifetime actually seems to have a FECKLOAD in sample of just 40 mln URLs :eek:

Its MD5 time, which sucks as its slowers to calculate and takes double the space :(
 
Looks like its some other bug than hash's collision, phew, what a fecking relief! :)
 
AtW said:
Looks like its some other bug than hash's collision, phew, what a fecking relief! :)
Aye, ye cannae alter the laws of mathematics, captain!
 
wendigo100 said:
Aye, ye cannae alter the laws of mathematics, captain!

Dude, fast low-bit hash collisions are a reality, for example 32-bit CRC is really bad in this respect (for a reasonable number of different entries of course), MD5 - 128 bit is good in this respect but its way slower and takes whole 128 bit, so I settled on 64-bit hash function, naturally I did not do any fundamental theoretical research into how good the function is -- just tested on a bunch of data and it appeared OK, this incident really got me scared but luckily traced error to piece of code always returning same URL for some of URLs, which explained same hashes. Phew that was close :)
 
AtW said:
Pissed off due to discovering that 64-bit hash function that I expected to have nil collisions in my lifetime actually seems to have a FECKLOAD in sample of just 40 mln URLs :eek:

Its MD5 time, which sucks as its slowers to calculate and takes double the space :(


AtW trying hard to sound clever ...
Zzzzzzzzzzzzzzzzzzz
 
SandyDown said:
AtW trying hard to sound clever ...
Zzzzzzzzzzzzzzzzzzz

Have you washed all the dishes and prepared dinner for your partner, love? Better stick to things you know best!
 
AtW said:
Have you washed all the dishes and prepared dinner for your partner, love? Better stick to things you know best!

Yawn... when out of arguments you resort to this stupid statements ...

Yawn again .. and Zzzzzzzzzzzzzzzzzz
 
Oi, take this and SKA updates to technical where they belong. :p
 
SandyDown said:
Yawn... when out of arguments you resort to this stupid statements ...

When you have nothing to say on topic you say "Zzzzzzzz", if you ain't got anything to say on the topic then don't say anything.

I don't even think you know how hashes and hashtables work in the first place.
 

Advertisers

Back
Top