Improve the process for GNU tools
[minix3.git] / minix / drivers / system / random / random.h
blob9a52090273f4b31bf677d93442be9fbd8e21cb42
1 /*
2 random.h
4 Public interface to the random number generator
5 */
7 /* Internal random sources */
8 #define RND_TIMING 0
9 #define RANDOM_SOURCES_INTERNAL 1
10 #define TOTAL_SOURCES (RANDOM_SOURCES+RANDOM_SOURCES_INTERNAL)
12 void random_init(void);
13 int random_isseeded(void);
14 void random_update(int source, rand_t *buf, int count);
15 void random_getbytes(void *buf, size_t size);
16 void random_putbytes(void *buf, size_t size);