If I have a system where a hash is generated out of a total permutatiuon of 1 million possibilities. If there's a 10% chance of a collision, should I worry about the generating algoritm running 5 times?
HUH?!
Let's try that again:
I have a system similar to jsfiddle, where a user can "save" a file on my server. Now I'm using '23456789abcdefghijkmnopqrstuvwxyz'
which is 33 chars, and the file is 4 chars long, for a total of 1185921
possabilities.
The "filename" is generated randomly and if there's a collision it reruns to get another filename. Using a birthday paradox calculator I can see that after I have 500 entries I have a 10% chance of a collision.
What are the chances that I'll get a collision more than 5 times in a row? what about 4?
Is there any way to figure this out? Should I worry about it? What happens after 5000 entries?
Is there a program out there that can figure this out with any inputs?