Updated: October 28, 2024 |
Seed an RNG
#include <qcrypto/qcrypto.h>
int qcrypto_rng_seed(qcrypto_ctx_t *ctx, const uint8_t *seed, size_t size)
This function seeds the PRNG (pseudorandom number generator) with an initial value.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.