The random number generator from ESP32 uses noise from Wi-Fi and Bluetooth radios. If these are off, a pseudo-random number is generated instead; this is currently the case, but even though it's a black box, it's arguably better than returning a timestamp as a pseudo-random number generator. According to the ESP32 Technical Reference manual, the RNG passed the Dieharder Random Number Test suite (version 3.31.1)[1], but nothing has been said about the quality of the PRNG. The RNG register is read directly; no effort is made to use its contents to feed an entropy pool in a way that's similar to /dev/random on POSIX systems, as no such subsystem exists on Zephyr at the moment. [1] http://webhome.phy.duke.edu/~rgb/General/dieharder.php Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
7 lines
323 B
Makefile
7 lines
323 B
Makefile
obj-$(CONFIG_RANDOM_MCUX_RNGA) += random_mcux_rnga.o
|
|
obj-$(CONFIG_RANDOM_MCUX_TRNG) += random_mcux_trng.o
|
|
obj-$(CONFIG_TIMER_RANDOM_GENERATOR) = rand32_timer.o
|
|
obj-$(CONFIG_X86_TSC_RANDOM_GENERATOR) += rand32_timestamp.o
|
|
obj-$(CONFIG_RANDOM_STM32_RNG) += random_stm32_rng.o
|
|
obj-$(CONFIG_RANDOM_ESP32_RNG) += random_esp32.o
|