idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
random.hpp File Reference

Hardware random number generation. More...

#include <cstdint>
#include <esp_random.h>
#include <limits>
#include <span>

Go to the source code of this file.

Classes

class  idfxx::random_device
 Hardware random number generator satisfying UniformRandomBitGenerator. More...
 

Namespaces

namespace  idfxx
 

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.
 

Detailed Description

Hardware random number generation.

Definition in file random.hpp.