7 releases
| 0.2.0 | Jun 17, 2022 |
|---|---|
| 0.1.6 | Oct 7, 2021 |
| 0.1.5 | Apr 14, 2019 |
| 0.1.2 | Mar 12, 2019 |
#1691 in Cryptography
Used in recordbox
12KB
163 lines
crypto_api_osrandom
Welcome to crypto_api_osrandom 🎉
About
This crate implements access to your operating system's cryptographically secure random number
generator via crypto_api.
APIs used
The following native APIs are used:
- macOS/iOS:
SecRandomCopyBytesfrom the security framework - FreeBSD/OpenBSD/NetBSD:
arc4random_buf(which does not use ARC4 anymore but a secure PRF like ChaCha20) - Windows:
CryptGenRandomwithPROV_RSA_FULLas provider - Linux:
getrandomfor glibc versions >= 2.25 or/dev/urandomfor ancient distributions
Dependencies
~0–310KB