fn try_with_rng<R>(f: impl FnOnce(&mut Rng) -> R) -> Result<R, AccessError>
Expand description
Try to run an operation with the current thread-local generator.
fn try_with_rng<R>(f: impl FnOnce(&mut Rng) -> R) -> Result<R, AccessError>
Try to run an operation with the current thread-local generator.