1use std::time::Duration; 2 3pub fn jitter(duration: Duration) -> Duration { 4 duration.mul_f64(rand::random::<f64>()) 5}