CSystemRandom Class Reference

#include <random.h>

Link against: random.lib

class CSystemRandom : public CRandom

Inherits from

Detailed Description

This default pseudo-random number generator uses system state to generate entropy for the generation of random numbers.

Constructor & Destructor Documentation

~CSystemRandom ( )

~CSystemRandom()

Member Function Documentation

GenerateBytesL ( TDes8 & )

voidGenerateBytesL(TDes8 &aDest)[virtual]

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.

ParameterDescription
aDestThe buffer to be filled with random data

NewL ( void )

IMPORT_C CSystemRandom *NewL(void)[static]

Constructs a new pseudo-random number generator.

Returns: A ready-to-use random number generator.

NewLC ( void )

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.