IMPORT_C void | SetThreadRandomL | ( | CRandom * | aRNG | ) |
Sets a pseudo-random number generator implementation to use for this thread.
Parameters | |
---|---|
aRNG | The pseudo-random number generator to use. |
IMPORT_C void | SetThreadRandomLC | ( | CRandom * | aRNG | ) |
Sets a pseudo-random number generator implementation to use for this thread, placing it on the cleanup stack.
Parameters | |
---|---|
aRNG | The pseudo-random number generator to use. |
void | DeleteThreadRandom | ( | TAny * | aPtr | ) |
IMPORT_C void | DestroyThreadRandom | ( | void | ) |
Destroys the currently installed random number generator that is in use for this thread.
IMPORT_C void | GenerateRandomBytesL | ( | TDes8 & | aDest | ) |
Generates pseudo-random data. Fills the provided buffer up to its current length, discarding any data that it may currently contain.
Parameters | |
---|---|
aDest | The buffer to fill with random data |
Leave Codes | |
---|---|
KErrNotSecure | The random data generated is not secure enough for cryptographic operations otherwise, leaves with any other system wide error codes. |