LoRaWAN-Signal-Mapping/iot/main/random.h

16 lines
428 B
C

#pragma once
/**
* Initialises the random number generation system.
* It's important to do this as early as possible, as it takes a while to
* gather the necessary entropy in order to actually generate a random number.
*/
void random_begin();
// FUTURE: Swap this out for LoRa untuned wideband radio static?
/**
* Gets an unsigned 32-bit random number.
* @return {uint32_t} A random number.
*/
uint32_t random_get();