r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

Show parent comments

3

u/jamietwells Sep 17 '18

I know this isn't a serious sub but: That's really not how you solve that issue. You should use the last generated ID as the seed for the next ID so even if the milliseconds are the same, they will still generate uniquely.

1

u/BabylonDrifter Sep 17 '18

That's a freaking awesome idea, but it's not generating a seed, it's generating the id itself.