Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add randomBytes precompile #213

Merged
merged 12 commits into from
Mar 1, 2024
Merged

add randomBytes precompile #213

merged 12 commits into from
Mar 1, 2024

Conversation

zeroXbrock
Copy link
Member

@zeroXbrock zeroXbrock commented Feb 27, 2024

📝 Summary

Replaces randomUint256() precompile with randomBytes(numBytes), which returns a random byte array of length numBytes.

📚 References

successor to #210

suave-std implements randomUintX functions using randomBytes


  • I have seen and agree to CONTRIBUTING.md

@zeroXbrock zeroXbrock requested a review from ferranbt February 29, 2024 20:58
@ferranbt ferranbt merged commit 546f5a5 into main Mar 1, 2024
4 checks passed
@ferranbt ferranbt deleted the brock/random-bytes branch March 1, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants