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

Derive PartialEq+Eq. #6

Closed
wants to merge 5 commits into from
Closed

Derive PartialEq+Eq. #6

wants to merge 5 commits into from

Conversation

rickvanprim
Copy link
Contributor

@rickvanprim
Copy link
Contributor Author

Note this is dependent on rust-random/rand#975.

Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good, other than Jitter.

@@ -122,6 +122,7 @@ const MEMORY_SIZE: usize = MEMORY_BLOCKS * MEMORY_BLOCKSIZE;
///
/// Note that this RNG is not suitable for use cases where cryptographic
/// security is required.
#[derive(PartialEq, Eq)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this one — it's non-deterministic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, will fix.

@dhardy
Copy link
Member

dhardy commented May 4, 2020

Uh, there are two more changes to the rand_jitter crate that you didn't revoke there. You might as well squash those changes.

@rickvanprim
Copy link
Contributor Author

Sorry about that, I'll revert them. Is maintaining a single squashed commit and force pushing an acceptable workflow? It would certainly make it easier for me to keep these things from slipping through, but I don't know if that's discouraged.

@dhardy
Copy link
Member

dhardy commented May 5, 2020

Yes, squashing is fine with me (provided you're not making massive commits).

@vks
Copy link
Contributor

vks commented Jul 15, 2020

Implemented by #7.

@vks vks closed this Jul 15, 2020
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.

Implement PartialEq/Eq on PRNG Generators where possible
3 participants