Updated: October 28, 2024 |
Retrieve RNG bytes
#include <qcrypto/qcrypto.h>
int qcrypto_rng_bytes(qcrypto_ctx_t *ctx, uint8_t *buf, size_t size)
This function extracts a random value from the PRNG (pseudorandom number generator).
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.