Function silc_rng_global_init
SYNOPSIS
SilcBool silc_rng_global_init(SilcRng rng);
DESCRIPTION
This function sets the `rng' if non-NULL as global RNG context.
When any of the silc_rng_global_* functions is called the `rng' is
used as RNG. If `rng' is NULL this will allocate new RNG as global
RNG. The application in this case must free it later by calling
silc_rng_global_uninit. Returns TRUE after Global RNG is initialized.
NOTES
If `rng' was non-NULL, the silc_rng_init must have been called for
the `rng' already.
This function can be used to define the `rng' as global RNG and then
use silc_rng_global_* functions easily without need to provide
the RNG as argument.
|