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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize() must be made before this function can be called. |
P6R::eInvalidArg | pBuffer is NULL or cBuffer is zero. |
P6R::eFailAndException | Random number generation failed. Exception record provides detailed error info. |