New pseudo random number generator
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-01-05 17:20:22 +01:00
parent 0aafcd1819
commit 13fae39eb3
6 changed files with 80 additions and 33 deletions

View file

@ -52,6 +52,24 @@ void unlock_msg(void);
void lock_memory(void);
void unlock_memory(void);
/****************************************************************************/
/* random */
/**
* Reseed the random pseudo random number generator
*/
void random_reseed(void);
/**
* Return a pseudo random number of 8 bits
*/
unsigned char random_u8(void);
/**
* Return a pseudo random number of 64 bits
*/
uint64_t random_u64(void);
/****************************************************************************/
/* log */