Generates a PRNG seed in a system-dependent way.
#include "huseed.h"
int hu_SeedGet(size_t *seedLen, unsigned char *seed, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The size of the buffer on being called, the size of the seed written upon return. It can be smaller than that requested.
A buffer to store the seed in.
A global context.
The seeding source must be registered in the global context prior to this call.
A PRNG must be initialized with a random seed. The seed must be generated in a system-dependent way, from available sources of entropy. Since the system entropy is unlikely to change quickly, the seed should be generated only once, and used to create a long-living PRNG.
Reseeding the RNG context with whatever new entropy is collected is excellent practice.
seed is NULL.
seedLen is NULL.
*seedLen is NULL.
sbCtx is NULL.
A seeding source is not registered in the SB global context sbCtx.