mbedtls_hmac_drbg_set_prediction_resistance() function
This function turns prediction resistance on or off. The default value is off.
Arguments
ctx
The HMAC_DRBG context.
resistance
#MBEDTLS_HMAC_DRBG_PR_ON or #MBEDTLS_HMAC_DRBG_PR_OFF.
Notes
If enabled, entropy is gathered at the beginning of every call to mbedtls_hmac_drbg_random_with_add() or mbedtls_hmac_drbg_random(). Only use this if your entropy source has sufficient throughput.