Skip to main content

DeterministicRng

Trait DeterministicRng 

Source
pub trait DeterministicRng: Rng {
    // Required method
    fn is_deterministic(&self) -> bool;
}
Expand description

Trait for deterministic random number generators

RNGs implementing this trait produce reproducible sequences when seeded with the same seed value.

Required Methods§

Source

fn is_deterministic(&self) -> bool

Check if the RNG is in a deterministic state

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§