Skip to content

Commit

Permalink
Merge eb05c22 into 44d5fe5
Browse files Browse the repository at this point in the history
  • Loading branch information
ctbur committed Mar 21, 2019
2 parents 44d5fe5 + eb05c22 commit 762c1a8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 10 deletions.
9 changes: 5 additions & 4 deletions Cargo.toml
Expand Up @@ -10,15 +10,16 @@ keywords = [ "distribution", "poisson-disk", "multidimensional", "sampling" ]
license = "MIT"

[dependencies]
rand = "0.5"
alga = "0.7"
rand = "0.6"
alga = "0.8"
num-traits = "0.2"
lazy_static = "0.1"
lazy_static = "1.3"
modulo = "0.1"
sphere = "0.3"

[dev-dependencies]
nalgebra = "0.16"
nalgebra = "0.17"
rand_xorshift = "0.1.1"

[profile.test]
opt-level = 3
5 changes: 4 additions & 1 deletion tests/adding.rs
Expand Up @@ -2,7 +2,10 @@ extern crate poisson;
use poisson::{Type, Builder, algorithm};

extern crate rand;
use rand::{SeedableRng, XorShiftRng};
use rand::SeedableRng;

extern crate rand_xorshift;
use rand_xorshift::XorShiftRng;

extern crate sphere;

Expand Down
1 change: 1 addition & 0 deletions tests/common.rs
Expand Up @@ -2,6 +2,7 @@ extern crate poisson;
use poisson::{Type, Builder};

extern crate rand;
extern crate rand_xorshift;

extern crate nalgebra as na;
use na::Vector2 as naVec2;
Expand Down
7 changes: 5 additions & 2 deletions tests/dim2.rs
@@ -1,9 +1,12 @@
extern crate poisson;
use poisson::{Builder, algorithm};
use poisson::Type::*;
use poisson::{algorithm, Builder};

extern crate rand;
use rand::{XorShiftRng, SeedableRng};
use rand::SeedableRng;

extern crate rand_xorshift;
use rand_xorshift::XorShiftRng;

extern crate sphere;

Expand Down
1 change: 1 addition & 0 deletions tests/dim3.rs
Expand Up @@ -2,6 +2,7 @@ extern crate poisson;
use poisson::Type::*;

extern crate rand;
extern crate rand_xorshift;

extern crate sphere;

Expand Down
1 change: 1 addition & 0 deletions tests/dim4.rs
Expand Up @@ -2,6 +2,7 @@ extern crate poisson;
use poisson::Type::*;

extern crate rand;
extern crate rand_xorshift;

extern crate sphere;

Expand Down
4 changes: 3 additions & 1 deletion tests/helper/mod.rs
@@ -1,9 +1,11 @@
#![allow(unused)]
use poisson::{Type, Builder, Vector, Float, algorithm};

use rand::{SeedableRng, XorShiftRng};
use rand::SeedableRng;
use rand::distributions::{Distribution, Standard};

use rand_xorshift::XorShiftRng;

extern crate num_traits;
use self::num_traits::NumCast;

Expand Down
7 changes: 5 additions & 2 deletions tests/validity.rs
Expand Up @@ -2,8 +2,11 @@ extern crate poisson;
use poisson::Type;

extern crate rand;
use rand::{Rng, SeedableRng, XorShiftRng};
use rand::distributions::normal::StandardNormal;
use rand::{Rng, SeedableRng};
use rand::distributions::StandardNormal;

extern crate rand_xorshift;
use rand_xorshift::XorShiftRng;

extern crate sphere;

Expand Down

0 comments on commit 762c1a8

Please sign in to comment.