cap_rand

Function random

Source
pub fn random<T>(ambient_authority: AmbientAuthority) -> 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.