Explain RNG differences, add FURI_HAL_RANDOM_MAX

This commit is contained in:
Willy-JL
2024-04-02 16:21:39 +01:00
parent b8b25b0c03
commit 2c7cb8a493

View File

@@ -6,12 +6,16 @@
extern "C" {
#endif
#define FURI_HAL_RANDOM_MAX 0xFFFFFFFF
/** 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);