pub fn fill_entropy(dest: &mut [u8]) -> Result<()>Expand description
Fill dest with cryptographically secure bytes from the OS entropy source.
Requires the getrandom feature. Returns Err if that feature is absent
rather than silently producing weak output.
ยงErrors
Returns Error::FeatureNotAvailable when the getrandom feature is not
enabled. Returns Error::EntropySourceUnavailable when getrandom fails.