Upgrade dev dependencie
This commit is contained in:
parent
5f9cc6b28f
commit
4cc9e85081
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ status = "actively-developed"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.3.1"
|
criterion = "0.3.1"
|
||||||
rand="0.7.3"
|
rand="0.8.5"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
no-std-compat = { version = "0.4.1", features = [ "alloc" ] }
|
no-std-compat = { version = "0.4.1", features = [ "alloc" ] }
|
||||||
|
|
|
@ -19,7 +19,7 @@ fn init_grid() -> Grid<u32> {
|
||||||
|
|
||||||
fn criterion_benchmark(c: &mut Criterion) {
|
fn criterion_benchmark(c: &mut Criterion) {
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let mut rand = || rng.gen_range(0, SIZE);
|
let mut rand = || rng.gen_range(0..SIZE);
|
||||||
|
|
||||||
let mut rng_u32 = rand::thread_rng();
|
let mut rng_u32 = rand::thread_rng();
|
||||||
let mut rand_u32 = || rng_u32.gen::<u32>();
|
let mut rand_u32 = || rng_u32.gen::<u32>();
|
||||||
|
|
Loading…
Reference in a new issue