News for hackers. Stuff that matters.
Re:Hashids – Generate short hashes from numbers by bazzargh on Monday August 11, 2014 @01:35PM (#8164242)
You're storing 6-char base-32 values, so 1073741824 possibilities, but you've got 50-50 chance of collision after 38582 values - that's not a lot, the birthday paradox bites again! Using much larger random values or hashes gives you a better safety margin.
Re:Hashids – Generate short hashes from numbers by zrail on Monday August 11, 2014 @01:44PM (#8164296)
I also have a unique constraint on the value and re-run the generator if there's a collision.
Re:Hashids – Generate short hashes from numbers by d55 on Monday August 11, 2014 @03:37PM (#8164818)
That is something that hashid avoids.