Hacker News new | ask | show | jobs
by pimpl 3941 days ago
Do you think it’s safe to generate ticket numbers with such tools? I'm currently this PHP lib to do it: https://github.com/icomefromthenet/ReverseRegex and since we do not sell thousands of tickets a day I think it should be okay to use it for this purpose. What do you think?
1 comments

It's practical, if you check the new one is not a duplicate - the lib info does not state how distinct the values would be, or how does it uses the RNG.

Depending on what you really need (output string format, amount of numbers, non-additive links), you should find a hash function for your fit. You can always start by looking for youtube url hash.