Function urandom::rng::getentropy

source ·
pub fn getentropy(buffer: &mut [u8])
Expand description

Provides cryptographically secure entropy.

Panics

If unable to provide secure entropy this method will panic.

Implementation notes

The implementation is provided by the getrandom crate.