1*433d6423SLionel Sambuc /* 2*433d6423SLionel Sambuc random.h 3*433d6423SLionel Sambuc 4*433d6423SLionel Sambuc Public interface to the random number generator 5*433d6423SLionel Sambuc */ 6*433d6423SLionel Sambuc 7*433d6423SLionel Sambuc /* Internal random sources */ 8*433d6423SLionel Sambuc #define RND_TIMING 0 9*433d6423SLionel Sambuc #define RANDOM_SOURCES_INTERNAL 1 10*433d6423SLionel Sambuc #define TOTAL_SOURCES (RANDOM_SOURCES+RANDOM_SOURCES_INTERNAL) 11*433d6423SLionel Sambuc 12*433d6423SLionel Sambuc void random_init(void); 13*433d6423SLionel Sambuc int random_isseeded(void); 14*433d6423SLionel Sambuc void random_update(int source, rand_t *buf, int count); 15*433d6423SLionel Sambuc void random_getbytes(void *buf, size_t size); 16*433d6423SLionel Sambuc void random_putbytes(void *buf, size_t size); 17