1 #ifndef RANDGEN_H 2 #define RANDGEN_H 3 4 /* Fill given buffer with semi-strong randomness */ 5 void random_fill(void *buf, size_t size); 6 7 /* may be called multiple times, 8 and are called by default in lib_init */ 9 void random_init(void); 10 void random_deinit(void); 11 12 #ifdef DEBUG 13 /* Debug helper to make random tests reproduceable. 0=got seed, -1=failure. */ 14 int rand_get_last_seed(unsigned int *seed_r); 15 #endif 16 17 #endif 18