Skip to main content

RandomSource

Trait RandomSource 

Source
pub trait RandomSource: Send + Sync {
    // Required method
    fn next_u64(&self) -> u64;
}
Expand description

Random numbers for codes, generated values and simulated failures, replaceable in tests.

Required Methods§

Source

fn next_u64(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§