2018-03-01 13:03:40 -05:00
|
|
|
/**
|
|
|
|
* @file random.h
|
|
|
|
* Provides true random number generation functionality
|
|
|
|
*/
|
|
|
|
|
2018-02-27 23:55:46 -05:00
|
|
|
#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.
|
|
|
|
*/
|
2018-02-27 23:55:46 -05:00
|
|
|
void random_init(void);
|
2018-03-01 13:03:40 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the next random number from the generator.
|
|
|
|
* @return the random number
|
|
|
|
*/
|
2018-02-27 23:55:46 -05:00
|
|
|
uint32_t random_get(void);
|
|
|
|
|
|
|
|
#endif // RANDOM_H_
|