8 ms·
Finally, a tool optimized for creating Git commit hash collisions
by rbongers 8mo ago
Finally, a tool optimized for creating Git commit hash collisions
- nlehuen 8mo agoI came here to write that :-)
- nlehuen 8mo agoActually there are π(N) ~ N / ln(N) primes less than N per the Prime Number Theorem, so π(2 ^ 160) ~ 2 ^ 153.2 - this only drops 7 bits. So that does increase the odds of collision but much less than what I expected!
- cluckindan 8mo agoIt’s ok, you can still assign a unique hash for more than half of the atoms in the universe.
- keepamovin 8mo agoMaths saved the day again! I added a section to the README and pages site noting your logic.
- perrygeo 8mo agoEven with git-prime reducing the address space by a few orders of magnitude, there's still (effectively) zero chance for collision. The difference between 10^-29 and 10^-27 isn't that great in practice.