Generates a PRNG seed in a system-dependent way.
#include "huseed.h"
int hu_SeedFromSystem(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.
An SB global context. No crypto support is required to be registered; this context will be used only for the memory callbacks.
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.
This function does not require any register function to be called before its use.
seed is NULL.
seedLen is NULL.
*seedSz is NULL.
sbCtx is NULL.