logo
pub fn thread_rng(_: AmbientAuthority) -> CapRng
Expand description

Retrieve the lazily-initialized thread-local random number generator, seeded by the system.

This corresponds to rand::thread_rng.

Ambient Authority

This function makes use of ambient authority to access the platform entropy source.