Open anthony-arnold opened 2 years ago
Taking a look at the common practices of other languages' standard libraries and typically-used UUID libraries:
All of the above default to or exclusively use the system CSPRNG to grab 16 bytes, then set the variant and version. The system_random
crate could work well here instead of directly using /dev/urandom
and seeding a generator.
Several of the above allow creating a UUIDv4 from an existing array.
The current way AdaID does randomness is messy.
It's - we have better ways for handling RNG in software.
I'd like to make the interface for Random UUIDs more flexible. This could include an interface for client code providing: