Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IEntropySource::fillBuffer ( P6CHAR pEntropy,
P6R::P6UINT32 bufSize 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eFailEntropy not available.
P6R::eNotInitializedA successful call to initialize() has not been made.
P6R::eInvalidArgpEntropy is NULL.
P6R::eIoErrorFailed when trying to read /dev/random.