Function esp_idf_hal::sys::bootloader_random_enable
source · pub unsafe extern "C" fn bootloader_random_enable()
Expand description
@brief Enable an entropy source for RNG if RF subsystem is disabled
@warning This function is not safe to use if any other subsystem is accessing the RF subsystem or the ADC at the same time!
The exact internal entropy source mechanism depends on the chip in use but all SoCs use the SAR ADC to continuously mix random bits (an internal noise reading) into the HWRNG. Consult the SoC Technical Reference Manual for more information.
Can also be called from app code, if true random numbers are required without initialized RF subsystem. This might be the case in early startup code of the application when the RF subsystem has not started yet or if the RF subsystem should not be enabled for power saving.
Consult ESP-IDF Programming Guide “Random Number Generation” section for details.