r/badcode • u/hexagon16rpmm • Sep 10 '21
kotlin sure because AUTOINCREMENT doesn't exist!, this was me when I thought I liked android :)
6
Upvotes
r/badcode • u/hexagon16rpmm • Sep 10 '21
View all comments
Show parent comment
1
u/[deleted] Sep 11 '21
at that point i'd just say fuck it and generate random 64 bit numbers, catch the error if a collision happens and generate a new number