test_rng_seeded

Function test_rng_seeded 

Source
pub fn test_rng_seeded(seed: u64) -> StdRng
Expand description

Returns a seeded RNG with a custom seed for deterministic testing.

Use this when you need multiple independent RNG streams in the same test, or when a helper function needs its own RNG that won’t collide with the caller’s.