hu_CustomRngDestroy()

Destroys RNG context for the user defined RNG.

Synopsis:

#include "hurandom.h"
 
int hu_CustomRngDestroy(sb_RNGCtx *rngCtx, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

rngCtx

RNG context pointer.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

This function will call the registered hu_RngEndFunc() function (if any) before the RNG context is destroyed.

Returns:

SB_ERR_NULL_CONTEXT_PTR

RNG context pointer is NULL.

SB_ERR_NULL_CONTEXT

RNG context is NULL.

SB_ERR_BAD_CONTEXT

RNG context is invalid.

SB_X

Failure return from the callback function.

SB_SUCCESS

Success.