#include <p6random.h>
Inherits P6R::p6ICom.
Public Member Functions | |
virtual P6INT32 | addref (void)=0 |
virtual P6R::P6ERR | genRandomBytes (P6UCHAR *pBuffer, P6UINT32 cBuffer)=0 |
virtual P6R::P6ERR | getQuality (P6ENTROPYFLAGS *pQuality)=0 |
virtual P6R::P6ERR | queryInterface (const P6R::P6IID &iid, P6VOID **ppIface)=0 |
virtual P6INT32 | release (void)=0 |
virtual P6R::P6ERR | reSeed (void)=0 |
Provides a cryptographically strong random number generator.
Always use the p6IEntropyService interface instead of this one if possible when running under p6Platform.
It can be retrieved using the p6IRunningIface::findInterfaceByString() method and should always be used instead of a separate p6IRandom interface unless you have specific a specific need (eg. providing your own entropy source for seeding p6IRandom).
This service can be disabled in the server.conf. By default the service is enabled. Following is and example:
Possible values for enable are true|false.
The quality of the entropy source can also be specified in the config. For example:
The default is high. Possible values for quality are hight|low. This is a hint for platforms that provide different quality entropy sources. It will be ignored on platforms that do not support this.
Definition at line 99 of file p6random.h.