Function cap_rand::random

source ·
pub fn random<T>(ambient_authority: AmbientAuthority) -> Twhere
    Standard: Distribution<T>,
Expand description

Generates a random value using the thread-local random number generator.

This corresponds to rand::random.

Ambient Authority

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