mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 22:07:14 +03:00
Explain RNG differences, add FURI_HAL_RANDOM_MAX (#3565)
* Explain RNG differences, add FURI_HAL_RANDOM_MAX * Mark FURI_HAL_RANDOM_MAX unsigned Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
6b120a3b09
commit
16b34c6e4d
@ -6,12 +6,16 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define FURI_HAL_RANDOM_MAX 0xFFFFFFFFU
|
||||
|
||||
/** Initialize random subsystem */
|
||||
void furi_hal_random_init(void);
|
||||
|
||||
/** Get random value
|
||||
* furi_hal_random_get() gives up to FURI_HAL_RANDOM_MAX
|
||||
* rand() and random() give up to RAND_MAX
|
||||
*
|
||||
* @return random value
|
||||
* @return 32 bit random value (up to FURI_HAL_RANDOM_MAX)
|
||||
*/
|
||||
uint32_t furi_hal_random_get(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user