Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IRandom::genRandomBytes ( P6UCHAR pBuffer,
P6UINT32  cBuffer 
)
pure virtual

Retrieves the specified number of random bytes.

If there is not sufficient entropy in the pool, this method will block until enough entropy has been gather to fulfill the request.

Parameters
pBuffer[ out ] A pointer to a buffer in which the generated number sequence will be written.
cBuffer[ in ] The size (in bytes) of the buffer pointed to by pBuffer.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize() must be made before this function can be called.
P6R::eInvalidArgpBuffer is NULL or cBuffer is zero.
P6R::eFailAndExceptionRandom number generation failed. Exception record provides detailed error info.