Skip to content

Conversation

@coltfred
Copy link
Member

@coltfred coltfred commented Jan 9, 2026

This unnecessarily pushes the dev dependency onto all our users. It's not needed as we can use proptest to generate the random limbs and mask them off instead.

Also corrected an issue where if the PRIMEBITS was divisible by 31 or 62 the top limb would be 0 always (for the prop based tests).

Also made some changes to ensure more edge cases are being generated instead of leaving it up to chance. This helped find some issues with our tests that weren't ever exercised. (Division by 0)

@coltfred
Copy link
Member Author

coltfred commented Jan 9, 2026

It should be noted that this PR changes no code in the crate, only tests. Those tests could be generated in consuming crates, but it doesn't actually change the code generated.

@coltfred coltfred merged commit 4bedd6e into main Jan 12, 2026
24 checks passed
@coltfred coltfred deleted the remove-rand-from-proptests branch January 12, 2026 18:43
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.

3 participants