HAL_RNG_GenerateRandomNumber() function
Generates a 32-bit random number.
Arguments
hrng
pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
random32bit
pointer to generated random number variable if successful.
Return value
HAL status
Notes
Each time the random number data is read the RNG_FLAG_DRDY flag is automatically cleared.
Examples
HAL_RNG_GenerateRandomNumber() is referenced by 12 libraries and example projects: