yw_random_byte

Name

yw_random_byte -- fetch one byte of entropy from pool

Synopsis


     #include <yw/random.h>
   

int yw_random_byte(void);

DESCRIPTION

This function fetches one byte of random data. All random handling functions are threadsafe -- i.e. only one thread can fetch/add to pool at once, which is enforced by mutex.

RETURN VALUE

Random byte.

SEE ALSO

yw_random_add (3), yw_random_get (3), yw_random_int (3),

INFO

Generated from: random.c,v 1.6 2001/05/05 11:36:18 dobrek Exp.