3 unstable releases
0.2.0 | May 9, 2024 |
---|---|
0.1.1 | Apr 19, 2024 |
0.1.0 | Feb 12, 2024 |
#8 in #getrandom
618 downloads per month
Used in 18 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
~130KB