11 lines
228 B
C++
11 lines
228 B
C++
|
#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();
|
||
|
}
|