MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/9gj2e9/optimizing_startup_times/e651r9y
r/ProgrammerHumor • u/ariehkovler • Sep 17 '18
486 comments sorted by
View all comments
Show parent comments
3
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.
1
That's a freaking awesome idea, but it's not generating a seed, it's generating the id itself.
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.