# HG changeset patch # User Simon Heath # Date 1606060515 18000 # Sun Nov 22 10:55:15 2020 -0500 # Node ID a4211f70e3ed570d7a80b146d57c8b4f2fce1948 # Parent 59a5a3ffee88f292c88a1dabfbca65de0e6b9d51 Derive Eq Resolves issue #6 diff --git a/src/lib.rs b/src/lib.rs --- a/src/lib.rs +++ b/src/lib.rs @@ -25,7 +25,7 @@ /// A PRNG producing a 32-bit output. /// /// The current implementation is `PCG-XSH-RR`. -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct Rand32 { state: u64, inc: u64, @@ -157,7 +157,7 @@ // BUGGO: The recommended algorithm is PCG-XSL-RR? // See https://github.com/imneme/pcg-c/blob/master/include/pcg_variants.h#L2405 // Not sure if it matters? -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct Rand64 { state: u128, inc: u128,