Function cap_rand::thread_rng

source ·
pub fn thread_rng(ambient_authority: 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.