3 ms·
Wow, that's super unlikely. How many commits did the repo have? According to [1] using 3 letters you'd need at least 72 commits to have at least 50% chance to
by maksimum 7y ago
Wow, that's super unlikely. How many commits did the repo have?
According to [1] using 3 letters you'd need at least 72 commits to have at least 50% chance to observe a clash. Using 6 letters you'd need at least 3977 commits, lol.
[1] https://en.wikipedia.org/wiki/Birthday_problem#The_generalized_birthday_problem https://en.wikipedia.org/wiki/Birthday_problem#The_generaliz...
- gdxhyrd 7y agoHow is that unlikely? 4k commits is nothing. Any project with a dozen developers is going to reach that easily.
- mikestew 7y agoI’ve been using git for going on ten years. You don’t think I can pull off just one commit/day? I use six character hashes, I don’t recall that I’ve had a collision yet. But I guess I’m “due”. :-)