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 random* methods on Uint #440

Open
DaniPopes opened this issue Feb 27, 2025 · 0 comments · May be fixed by #444
Open

Add random* methods on Uint #440

DaniPopes opened this issue Feb 27, 2025 · 0 comments · May be fixed by #444

Comments

@DaniPopes
Copy link
Contributor

DaniPopes commented Feb 27, 2025

In alloy_primitives::FixedBytes we have ::random(), ::randomize() etc https://github.com/alloy-rs/core/blob/047af040dc4a4c76c3ba0fa1b6e60ba295762937/crates/primitives/src/bits/fixed.rs#L367-L444

Implement these in rand support in the same style, treating the limbs array as a byte array instead ([u8; _]).

The try_* methods aren't necessary.

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 a pull request may close this issue.

1 participant