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

11 lines
228 B
C++
Raw Permalink Normal View History

#include <Entropy.h>
inline void random_begin() {
// Initialise the system to start gathering entropy ready to generate random numbers later
Entropy.initialize();
}
inline uint32_t random_get() {
return Entropy.random();
}