cap_rand

Function 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.