Skip to main content

randomized_jitter

Function randomized_jitter 

Source
pub fn randomized_jitter(
    delay: Duration,
    min_percent: u16,
    max_percent: u16,
) -> Duration
Expand description

Applies a sampled percentage using the default thread-local random generator.

The bounds are inclusive and clamped to a practical percentage range. Callers that need deterministic behavior should use apply_jitter instead.