Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: random.h
Link against: random.lib

Class CSystemRandom

class CSystemRandom : public CRandom;

Description

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

Derivation

Members

Defined in CSystemRandom:
GenerateBytesL(), NewL(), NewLC()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CSystemRandom *NewL(void);

Description

Constructs a new system random number generator.

Return value

CSystemRandom *

A ready-to-use random number generator.


NewLC()

static IMPORT_C CSystemRandom *NewLC(void);

Description

Constructs a new system random number generator, and places it on the cleanup stack.

Return value

CSystemRandom *

A ready-to-use random number generator.

[Top]


Member functions


GenerateBytesL()

virtual void GenerateBytesL(TDes8 &aDest);

Description

Implements the contract as specified in the base class, CRandom, filling the buffer supplied with cryptographically secure random data up to its current length, discarding its current content.

Parameters

TDes8 &aDest

The buffer to which to write random data