-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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 a pseudorandom generator for move tests #7554
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Jonas, this will be super useful to Move devs!
- Would you mind also adding API's for other integer types (u16, u32, u128, u156)?
- Because
bcs
won't havepeel_
functions for some of these, you may just want to roll your own version of that functionality. We will eventually havefrom_bytes
constructors for all integer types, but in the meantime we'll have to make do.
Co-authored-by: Sam Blackshear <sam.blackshear@gmail.com>
Those are added now, and I've written my own "from bytes" functions for all types, and I'm using @emmazzz suggestion on generating values in range from modulus instead of rejection sampling. Let me know if anything is missing. |
Closing #7544