Generates random data of the specified length.
#include "hurandom.h"
int hu_RngGetBytes(sb_RNGCtx rngCtx, size_t bufSize, unsigned char *buf, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An RNG context object.
The length (in bytes) of random data buffer.
Random data.
A global context.
The RNG context object is NULL.
The RNG context object is invalid.
The length of the output buffer is invalid.
The output buffer is NULL.
FIPS 140-1/2 condition failed.
Success.