23#define TOR_WEAK_RNG_INIT {383745623}
25#define TOR_WEAK_RANDOM_MAX (INT_MAX)
32#define tor_weak_random_one_in_n(rng, n) (0==tor_weak_random_range((rng),(n)))
Integer definitions used throughout Tor.
int32_t tor_weak_random_range(tor_weak_rng_t *rng, int32_t top)
int32_t tor_weak_random(tor_weak_rng_t *weak_rng)
void tor_init_weak_random(tor_weak_rng_t *weak_rng, unsigned seed)