Struct rand::OsRng 
            [-] [+]
        [src]
pub struct OsRng {
    // some fields omitted
}A random number generator that retrieves randomness straight from the operating system. Platform sources:
- Unix-like systems (Linux, Android, Mac OSX): read directly from
/dev/urandom, or fromgetrandom(2)system call if available. - Windows: calls 
CryptGenRandom, using the default cryptographic service provider with thePROV_RSA_FULLtype. - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed.
 
This does not block.