Skip to content

Commit bb492b6

Browse files
committed
Fix benchmark test
1 parent ef9e6a0 commit bb492b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ rand_xoshiro = { path = "rand_xoshiro", version = "0.1" }
7373
rand_isaac = { path = "rand_isaac", version = "0.1" }
7474
rand_chacha = { path = "rand_chacha", version = "0.1" }
7575
rand_xorshift = { path = "rand_xorshift", version = "0.1" }
76+
rand_distr = { path = "rand_distr", version = "0.1" }
7677

7778
[build-dependencies]
7879
autocfg = "0.1"

benches/distributions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
extern crate test;
1212
extern crate rand;
13+
extern crate rand_distr;
1314

1415
const RAND_BENCH_N: u64 = 1000;
1516

@@ -21,7 +22,7 @@ use std::time::Duration;
2122

2223
use rand::{Rng, FromEntropy};
2324
use rand::rngs::SmallRng;
24-
use rand::distributions::*;
25+
use rand_distr::{*, weighted::WeightedIndex};
2526

2627
macro_rules! distr_int {
2728
($fnn:ident, $ty:ty, $distr:expr) => {

0 commit comments

Comments
 (0)