Skip to content

Commit

Permalink
FIX: Update ndarray-rand quickcheck after rand update
Browse files Browse the repository at this point in the history
(quickcheck is still on rand 0.7, but the rest of the crate uses rand 0.8)
  • Loading branch information
bluss committed Dec 21, 2020
1 parent 590d30a commit a688283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndarray-rand/src/lib.rs
Expand Up @@ -305,7 +305,7 @@ pub enum SamplingStrategy {
#[cfg(feature = "quickcheck")]
impl Arbitrary for SamplingStrategy {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
if g.gen_bool(0.5) {
if bool::arbitrary(g) {
SamplingStrategy::WithReplacement
} else {
SamplingStrategy::WithoutReplacement
Expand Down

0 comments on commit a688283

Please sign in to comment.