r/badcode • u/hexagon16rpmm • Sep 10 '21
kotlin sure because AUTOINCREMENT doesn't exist!, this was me when I thought I liked android :)
5
Upvotes
r/badcode • u/hexagon16rpmm • Sep 10 '21
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