random256

Function random256 

Source
pub fn random256() -> [u8; 32]
Expand description

random256 provides 256 bits of entropy that has been hardened in userspace such that the randomness that is likely to be secure even if the underlying operating system is not properly generating secure entropy.

This call actively hardens the entropy pool when it is called. As a result it runs more slowly and requires three full cryptographic hash operations each time it is invoked. It also requires reading the system time 3 times. This ongoing entropy collection mechanism protects the caller against active adversaries that may be using side channels to compromise the entropy state.