Creates an RNG context object with optional initial seed and reseed callback.
#include "hurandom.h"
int hu_RngCreate(size_t seedLen, const unsigned char *seed, hu_ReseedCallbackFunc *seedFunc, void *rsourceParam, sb_YieldCtx yieldCtx, sb_RNGCtx *rngCtx, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The length (in bytes) of initial seed. (Optional)
The initial seed value. Set to NULL if not used.
A user-provided callback function. (Optional - set to NULL if not used.)
A user-defined data that will be passed to seedFunc. (Optional - set to NULL if not used.)
A yield context. (Optional - set to NULL if not used.)
An RNG context object pointer.
A global context.
If a reseed callback function is provided, it will be called periodically to obtain additional seeding data.
The RNG context object pointer is NULL.
Memory allocation failure.
Success.