3 ms·
50% chance of one collision. Be careful with those maths!
by geocar 11y ago
50% chance of one collision. Be careful with those maths!
- IanCal 11y agoYes, thanks for the clarification, it's what I meant with "a collision" but I realise that's ambiguous.
- geocar 11y agoNo worries, and you're absolutely right that it depends on your application whether this is a problem or not! Estimating population sizes? "Unrecognised IP addresses?" Probably fine. Interning the hash and using the real IP address in a database someplace? Probably not.
- nly 11y agoNo, it's a 50% probability of there being at least one collision (or, put another way, a 50% chance of there being no collisions).
- geocar 11y agoYou're absolutely right, but it won't let me edit it. Thanks!