Skip to content

random: Check `GetRNDRRS` is supported in `InitHardwareRand` to avoid infinite loop

This PR want to fix #31817 by added a maximum retry limit (max_retries) to the GetRNDRRS function to prevent it from entering an infinite loop if the hardware random number generator fails to return a valid random number. This change improves stability and ensures that the function terminates after a predefined number of retries.

Merge request reports

Loading