-
Notifications
You must be signed in to change notification settings - Fork 27
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
Derive PartialEq+Eq. #6
Conversation
Note this is dependent on rust-random/rand#975. |
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.
Thanks. Looks good, other than Jitter.
rand_jitter/src/lib.rs
Outdated
@@ -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)] |
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.
Not this one — it's non-deterministic.
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.
Good catch, will fix.
Uh, there are two more changes to the |
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. |
Yes, squashing is fine with me (provided you're not making massive commits). |
Implemented by #7. |
Fixes rust-random/rand#964.