CRandom Class Reference

#include <random.h>

Link against: random.lib

class CRandom : public CBase

Inherits from

  • CRandom

    Constructor & Destructor Documentation

    CRandom ( void )

    IMPORT_CCRandom(void)[protected]

    Member Function Documentation

    GenerateBytesL ( TDes8 & )

    voidGenerateBytesL(TDes8 &aDest)[pure virtual]

    Implementations of this method should fill the passed buffer with the generated pseudo-random data up to the current length, discarding any current contents. The implementations should leave with KErrNotSecure when the generated random data is not secure enough.

    leave
    KErrNotSecure Random data generated is not secure enough for crytographic operations otherwise, leaves with any other system wide error code.
    ParameterDescription
    aDestThe buffer to fill with random data