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.
Functions calling HAL_RNG_GenerateRandomNumber()
Functions called by HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber()
Data read by HAL_RNG_GenerateRandomNumber()
Data written by HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber()::tickstart HAL_RNG_GenerateRandomNumber()::status all items filtered out
HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber()::tickstart HAL_RNG_GenerateRandomNumber()::status all items filtered out
Type of HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber()
uint32_t all items filtered out