3 unstable releases
0.2.0 | May 9, 2024 |
---|---|
0.1.1 | Apr 19, 2024 |
0.1.0 | Feb 12, 2024 |
#6 in #getrandom
557 downloads per month
Used in 17 crates
(via lightning)
4KB
getrandom
provides access to OS randomness, but will fail to compile on platforms that do
not support fetching OS randomness. This is exactly what you want when you're doing
cryptographic operations, but when you're just opportunistically randomizing, we're fine with
compiling and simply disabling randomization.
This crate does that, returning only possibly-random data.
Note that this crate only enables getrandom on a subset of platforms it supports. As getrandom evolves this crate is unlikely to carefully track all getrandom-supported platforms, however will use random data on popular platforms.
Dependencies
~125KB