#include <random.h>
class CSystemRandom : public CRandom |
Public Member Functions | |
---|---|
~CSystemRandom() | |
virtual void | GenerateBytesL(TDes8 &) |
IMPORT_C CSystemRandom * | NewL(void) |
IMPORT_C CSystemRandom * | NewLC(void) |
This default pseudo-random number generator uses system state to generate entropy for the generation of random numbers.
void | GenerateBytesL | ( | TDes8 & | aDest | ) | [virtual] |
Reimplemented from CRandom::GenerateBytesL(TDes8 &)
Implements the contract as specified in the base class, CRandom, filling the buffer supplied with random data up to its current length, discarding its current content. It will leave under no memory condition.
Parameter | Description |
---|---|
aDest | The buffer to be filled with random data |
IMPORT_C CSystemRandom * | NewL | ( | void | ) | [static] |
Constructs a new pseudo-random number generator.
Returns: A ready-to-use random number generator.
IMPORT_C CSystemRandom * | NewLC | ( | void | ) | [static] |
Constructs a new pseudo-random number generator, and places it on the cleanup stack.
Returns: A ready-to-use random number generator.