Initializes a random number generator (RNG) context for the user defined RNG using user-provided callback functions and seed value.
#include "hurandom.h"
int hu_CustomRngCreate(void *initInput, hu_RngInitFunc *init, hu_RngEndFunc *end, hu_RngGetBytesFunc *getbytes, hu_RngReseedFunc *reseed, sb_YieldCtx yieldCtx, sb_RNGCtx *rngCtx, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
Input to the supplied initialization function. This value is passed to the user-defined init function.
RNG initialization callback function pointer. (Optional - set to NULL if not used.)
RNG end callback function pointer. (Optional - set to NULL if not used.)
RNG get bytes callback function pointer. This function pointer must be supplied.
RNG reseed callback function pointer. (Optional - set to NULL if not used.)
Yield context. (Optional - set to NULL if not used.)
RNG context pointer.
A global context.
RNG context pointer is NULL.
Memory allocation failure.
Failure return from the callback function.
Success.