Skip to content

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

Merged
achow101 merged 1 commit into
bitcoin:masterfrom
eval-exec:exec/add-retry-limit-for-GetRNDRRS
Feb 19, 2025
Merged

random: Check GetRNDRRS is supported in InitHardwareRand to avoid infinite loop#31826
achow101 merged 1 commit into
bitcoin:masterfrom
eval-exec:exec/add-retry-limit-for-GetRNDRRS

Conversation

@eval-exec

Copy link
Copy Markdown
Contributor

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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GetRandBytes() Hangs on Samsung Galaxy S25 and OnePlus 13

10 participants