Expand description
Helper functionality used by the rest of tor-guardmgr.
Re-exportsยง
use rand::Rng;๐use std::time::Duration;๐use std::time::SystemTime;๐use tor_basic_utils::RngExt as _;๐
Functionsยง
- randomize_
time ๐ - Return a random time within the range
when-max ..= when. - round_
time ๐ - Round
whento a multiple ofdseconds relative to epoch.