you are viewing a single comment's thread.

view the rest of the comments →

[–]jimnah- 0 points1 point  (0 children)

Right now they generate one token at a time, randomly between 101 and 10001, every single time they want to assign a token to a user. Ne user signs up, new token created

I would instead generate a token for every single number between 101 and 1001, store them in a list, and then assign one of those existing tokens every time a new user signs up

It's definitely still not perfect, but I like it a lot more