Skip to main content

draw_chaos_timeslice

Function draw_chaos_timeslice 

Source
pub fn draw_chaos_timeslice(
    range: TimesliceRange,
    sched_seed: u64,
) -> NonZeroU64
Expand description

The --max-timeslice a chaos run with --chaos-timeslice-draw=run draws: log-uniform over range, both bounds included, as a pure function of the scheduler seed. A stream of its own (CHAOS_TIMESLICE_SALT) keeps it independent of the seed’s other draws, so adding the option changes no other random choice of the run.