-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandom_utils.h
More file actions
executable file
·32 lines (25 loc) · 833 Bytes
/
random_utils.h
File metadata and controls
executable file
·32 lines (25 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*!\file random_utils.h
** \author SMFSW
** \copyright MIT (c) 2017-2026, SMFSW
** \brief (A little less pseudo) random numbers generation utilities
**/
/****************************************************************/
#ifndef RANDOM_UTILS_H__
#define RANDOM_UTILS_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "sarmfsw.h"
/****************************************************************/
/*!\brief Generate a random number based on STM32 unique ID
** \param[in] start - Value for a first seed (if a value has been stored for next reset)
**
** \return Generated random number
**/
uint32_t random_Get(const uint32_t start);
/****************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* RANDOM_UTILS_H__ */
/****************************************************************/