nopoll_bool nopoll_nonce ( char *  buffer,
int  nonce_size 
)

Fills the buffer provided with a random nonce of the requested size.

The function try to read random bytes from the local PRNG to complete the bytes requested on the buffer..

Parameters
bufferThe buffer where the output is left
nonce_sizeThe size of the requested nonce to written into the caller buffer.
Returns
nopoll_true if the nonce was created otherwise nopoll_false is returned.

References nopoll_false, and nopoll_true.