Skip to main content

set_rng_breakpoints

Function set_rng_breakpoints 

Source
pub fn set_rng_breakpoints(breakpoints: Vec<(u64, u64)>)
Expand description

Set RNG breakpoints for deterministic replay.

Each breakpoint is a (target_count, new_seed) pair. When the RNG call count exceeds target_count, the RNG is reseeded with new_seed and the count resets to 1.

Breakpoints must be sorted by target_count in ascending order.

ยงParameters

  • breakpoints - Sorted list of (target_count, new_seed) pairs.