panic() cleanup.
[minix.git] / drivers / random / random.h
blob2930eb2303624018dc77a817bb5f71472d89c02d
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 _PROTOTYPE( void random_init, (void) );
13 _PROTOTYPE( int random_isseeded, (void) );
14 _PROTOTYPE( void random_update, (int source, rand_t *buf, int count) );
15 _PROTOTYPE( void random_getbytes, (void *buf, size_t size) );
16 _PROTOTYPE( void random_putbytes, (void *buf, size_t size) );