Function gnunet_sys::GNUNET_TIME_randomized_backoff[][src]

pub unsafe extern "C" fn GNUNET_TIME_randomized_backoff(
    rt: GNUNET_TIME_Relative,
    threshold: GNUNET_TIME_Relative
) -> GNUNET_TIME_Relative

Randomized exponential back-off, starting at 1 ms and going up by a factor of 2+r, where 0 <= r <= 0.5, up to a maximum of the given threshold.

@param rt current backoff time, initially zero @param threshold maximum value for backoff @return the next backoff time