Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: random.h
Link against: random.lib

Class RRandomSession

class RRandomSession : public RSessionBase;

Description

The client interface to the system random number generator. End users should use TRandom instead of this interface.

Derivation

Members

Defined in RRandomSession:
ConnectL(), GetRandom(), RRandomSession()

Inherited from RHandleBase:
Attributes(), Close(), Duplicate(), FullName(), Handle(), HandleInfo(), Name(), SetHandle(), SetHandleNC(), iHandle

Inherited from RSessionBase:
CreateSession(), EAutoAttach, EExplicitAttach, Open(), Send(), SendReceive(), SetReturnedHandle(), ShareAuto(), ShareProtected(), TAttachMode


Construction and destruction


RRandomSession()

IMPORT_C RRandomSession(void);

Description

[Top]


Member functions


GetRandom()

IMPORT_C TInt GetRandom(TDes8 &aDestination);

Description

Fills the provided buffer with secure random data up to its current length, discarding any current content.

Parameters

TDes8 &aDestination

The buffer in to which to write the random data

Return value

TInt


ConnectL()

IMPORT_C void ConnectL(void);

Description

Opens a new session with the random number server.