Expand description
§osrandom
Welcome to osrandom 🎉
A really minimal wrapper around your operating system’s cryptographically secure random number generator.
§APIs used
The following native APIs are used:
- macOS/iOS:
SecRandomCopyBytesfrom the built-inSecurity.framework - FreeBSD/OpenBSD/NetBSD:
arc4random_buf(which does not use ARC4 anymore but a secure PRF like ChaCha20) - Windows:
CryptGenRandomwithPROV_RSA_FULLas provider - Linux-GNU:
getrandomfor glibc versions >= 2.25 or/dev/urandomfor ancient distributions - Linux-MUSL:
/dev/urandomfor ancient distributions