DragonFly On-Line Manual Pages

Search: Section:  


PWS_RAND_GET(3)       DragonFly Library Functions Manual       PWS_RAND_GET(3)

NAME

pws_rand_get - Get some bytes of entropy

LIBRARY

-lpwstor

SYNOPSIS

#include <pwstor.h> int pws_rand_get(size_t bytes, unsigned char *dst);

DESCRIPTION

The pws_rand_get() function returns zero on success and non-zero to indicate failure. Upon success, the dst buffer (which the caller must allocate appropriately) will be filled with bytes bytes of entropy from the operating system.

SEE ALSO

pwstor(3) DragonFly 6.5-DEVELOPMENT October 23, 2008 DragonFly 6.5-DEVELOPMENT

Search: Section: