Skip to main content

rand_seed

Macro rand_seed 

Source
macro_rules! rand_seed {
    ($rng:expr, $seed:expr) => { ... };
}
Expand description

Re-seeds the active backend.

ยงExamples

use vrd::{Random, rand_seed};

let mut rng = Random::from_u64_seed(42);
rand_seed!(rng, 123);