Crates.io | osrandom |
lib.rs | osrandom |
version | 0.1.1 |
source | src |
created_at | 2022-09-08 17:58:51.544727 |
updated_at | 2024-11-29 22:09:33.280066 |
description | An interface to the OS' secure random number generator |
homepage | |
repository | https://github.com/KizzyCode/osrandom-rust |
max_upload_size | |
id | 661202 |
size | 19,872 |
Welcome to osrandom
🎉
A really minimal wrapper around your operating system's cryptographically secure random number generator.
The following native APIs are used:
SecRandomCopyBytes
from the built-in Security.framework
arc4random_buf
(which does not use ARC4 anymore but a secure PRF like
ChaCha20)CryptGenRandom
with PROV_RSA_FULL
as providergetrandom
for glibc versions >= 2.25 or /dev/urandom
for ancient distributions/dev/urandom
for ancient distributions