are there any crates for truly unique ids?
ik theres uuid and nanoid, but i want an id that is 100% unique, no chance of collision in a kazillion years.
ik twitter, discord, etc use a snowflake algorithm, and i found a crate that implements this but its unmaintained and has a compile dependency for windows that is a hassle
is there a true unique id crate out there? And if not, is there an easy way to create a unique id? (i dont want it to just be like a u64 that counts upwards, and also i dont want to check for duplicates in a hashmap/db or something
Cant i do something like
format!(time since unix epoch pad to 10 chars, rand::rand() pad to 26 chars)
== 36 digits and then the only chance of a repeat would be if two of these ids are generated at the same second and its still 26 random digits? if that makes sense? the only problem would be that you could know when the id was created but idc about that