According to the ESP32 Technical Reference Manual, the ESP32's true random number generator writes 32-bit values to the RNG_DATA_REG register, whose address is 0x3FF75144. This code samples the TRNG by reading from this address every second.
pbearson / esp32-hardware-rng Goto Github PK
View Code? Open in Web Editor NEWThe ESP32 contains an internal random number generator (RNG) that can be quickly utilized.