Added hardware random option and added function to set seed

This commit is contained in:
2021-01-16 01:34:57 +01:00
parent 228856c26d
commit 6e2ab11578
4 changed files with 57 additions and 32 deletions

View File

@@ -1,3 +1,11 @@
#include "types.h"
// Get a pseudo random number
uint8_t random();
// Set the seed for the random number generator
void random_set_seed(uint8_t seed);
// Get a random number from hardware
uint8_t random_hw();