2 #ifndef randombytes_salsa20_random_H
3 #define randombytes_salsa20_random_H
6 * THREAD SAFETY: randombytes_salsa20_random*() functions are
7 * fork()-safe but not thread-safe.
8 * Always wrap them in a mutex if you need thread safety.
21 extern struct randombytes_implementation randombytes_salsa20_implementation
;
24 const char *randombytes_salsa20_implementation_name(void);
27 uint32_t randombytes_salsa20_random(void);
30 void randombytes_salsa20_random_stir(void);
33 uint32_t randombytes_salsa20_random_uniform(const uint32_t upper_bound
);
36 void randombytes_salsa20_random_buf(void * const buf
, const size_t size
);
39 int randombytes_salsa20_random_close(void);