calculator/include/random.h

23 lines
365 B
C
Raw Normal View History

2018-03-01 13:03:40 -05:00
/**
* @file random.h
* Provides true random number generation functionality
*/
#ifndef RANDOM_H_
#define RANDOM_H_
#include <stdint.h>
2018-03-01 13:03:40 -05:00
/**
* Initializes the STM's true random number generator.
*/
void random_init(void);
2018-03-01 13:03:40 -05:00
/**
* Gets the next random number from the generator.
* @return the random number
*/
uint32_t random_get(void);
#endif // RANDOM_H_