13 #ifndef TOR_CRYPTO_RAND_H 14 #define TOR_CRYPTO_RAND_H 21 MOCK_DECL(
void,crypto_rand,(
char *to,
size_t n));
34 const char *prefix,
const char *suffix);
41 #ifdef CRYPTO_RAND_PRIVATE 46 extern int break_strongest_rng_syscall;
47 extern int break_strongest_rng_fallback;
char * crypto_random_hostname(int min_rand_len, int max_rand_len, const char *prefix, const char *suffix)
Definition: crypto_rand.c:534
int crypto_force_rand_ssleay(void)
Definition: crypto_rand.c:600
uint64_t crypto_rand_uint64_range(uint64_t min, uint64_t max)
Definition: crypto_rand.c:464
int crypto_rand_int_range(unsigned int min, unsigned int max)
Definition: crypto_rand.c:450
MOCK_DECL(int, router_have_minimum_dir_info,(void))
double crypto_rand_double(void)
Definition: crypto_rand.c:509
Definition: container.h:18
Header file to define uint32_t and friends.
void smartlist_shuffle(struct smartlist_t *sl)
Definition: crypto_rand.c:584
STATIC int crypto_strongest_rand_raw(uint8_t *out, size_t out_len)
Definition: crypto_rand.c:266
int crypto_rand_int(unsigned int max)
Definition: crypto_rand.c:423
uint64_t crypto_rand_uint64(uint64_t max)
Definition: crypto_rand.c:485
void crypto_seed_weak_rng(struct tor_weak_rng_t *rng)
Definition: crypto_rand.c:87
int crypto_seed_rng(void) ATTR_WUR
Definition: crypto_rand.c:356
void crypto_strongest_rand(uint8_t *out, size_t out_len)
Definition: crypto_rand.c:317
time_t crypto_rand_time_range(time_t min, time_t max)
Definition: crypto_rand.c:474
void crypto_rand_unmocked(char *to, size_t n)
Definition: crypto_rand.c:402
void * smartlist_choose(const smartlist_t *sl)
Definition: crypto_rand.c:572