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