This method fills the provided buffer with the entropy source to be used directly to seed a random number generator.
- Parameters
-
pEntropy | [ in ] Pointer to a buffer that will have the entropy value written into it. |
bufSize | [ in ] The size (in bytes) of the buffer pointed to by pEntropy. [ out ] The size (in bytes) of the entropy written into the buffer pointed to by pEntropy. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eFailEntropy not available. |
P6R::eNotInitialized | A successful call to initialize() has not been made. |
P6R::eInvalidArg | pEntropy is NULL. |
P6R::eIoError | Failed when trying to read /dev/random. |