yw_random_int

Name

yw_random_int -- fetch 4 bytes of entropy from pool

Synopsis


     #include <yw/random.h>
   

uint32_t yw_random_int(void);

DESCRIPTION

This function fetches 4 bytes of random data.

RETURN VALUE

Random 32 bit unsigned integer formed from 4 bytes from pool. All random handling functions are threadsafe -- i.e. only one thread can fetch/add to pool at once, which is enforced by mutex.

SEE ALSO

yw_random_add (3), yw_random_get (3), yw_random_byte (3),

INFO

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