mbedtls_entropy_add_source() function
Adds an entropy source to poll (Thread-safe if MBEDTLS_THREADING_C is enabled)
Arguments
threshold
Minimum required from source before entropy is released ( with mbedtls_entropy_func() ) (in bytes)
strong
MBEDTLS_ENTROPY_SOURCE_STRONG or MBEDTLS_ENTROPY_SOURCE_WEAK. At least one strong source needs to be added. Weaker sources (such as the cycle counter) can be used as a complement.
Return value
0 if successful or MBEDTLS_ERR_ENTROPY_MAX_SOURCES