PWS_RAND_GET(3) BSD Library Functions Manual PWS_RAND_GET(3)NAMEpws_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 indi‐
cate failure. Upon success, the dst buffer (which the caller must allo‐
cate appropriately) will be filled with bytes bytes of entropy from the
operating system.
SEE ALSOpwstor(3)BSD October 23, 2008 BSD