|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
True random number generation using the hardware RNG. More...
Namespaces | |
| namespace | idfxx |
Classes | |
| class | idfxx::random_device |
| Hardware random number generator satisfying UniformRandomBitGenerator. More... | |
Functions | |
| uint32_t | idfxx::random () noexcept |
| Returns a hardware-generated random 32-bit value. | |
| void | idfxx::fill_random (std::span< uint8_t > buf) noexcept |
| Fills a buffer with hardware-generated random bytes. | |
| void | idfxx::fill_random (std::span< std::byte > buf) noexcept |
| Fills a buffer with hardware-generated random bytes. | |
True random number generation using the hardware RNG.
Provides free functions and a C++ UniformRandomBitGenerator class backed by the hardware random number generator.
|
inlinenoexcept |
Fills a buffer with hardware-generated random bytes.
| buf | The buffer to fill with random data. |
Definition at line 63 of file random.hpp.
Fills a buffer with hardware-generated random bytes.
| buf | The buffer to fill with random data. |
Definition at line 54 of file random.hpp.
|
inlinenoexcept |
Returns a hardware-generated random 32-bit value.
Uses the true hardware random number generator when RF subsystem is active, or a pseudo-random source otherwise.
Definition at line 45 of file random.hpp.