11#include <hardware/structs/rosc.h>
12#include <hardware/sync.h>
18 for (uint8_t i = 0; i < 32; i++) {
20 result |= rosc_hw->randombit;
28 for (uint8_t i = 0; i < 8; i++) {
30 result |= rosc_hw->randombit;
Providing packet encoding functions for exchanging data with a remote host.
bool random_bytes(uint8_t *data, size_t len)
Generate len number of random bytes.
uint32_t random_uint32()
Return a random 32-bit unsigned integer.
void get_mac_address_raw(uint8_t *mac)
Get the device MAC address as raw bytes, written into the provided byte array (6 bytes).