Function cap_rand::thread_rng

source ·
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.

Examples found in repository?
src/lib.rs (line 125)
124
125
126
        pub fn default(ambient_authority: AmbientAuthority) -> Self {
            crate::thread_rng(ambient_authority)
        }