diff --git a/src/lib.rs b/src/lib.rs index 854ab5b0..7976270f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -111,6 +111,7 @@ Feel free to add your project to this list if you happen to use **nalgebra**! extern crate std; extern crate extra; +extern crate rand; extern crate serialize; #[cfg(test)] diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index b60b287e..5386d6c1 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -2,8 +2,8 @@ #[allow(missing_doc)]; // we hide doc to not have to document the $trhs double dispatch trait. -use std::rand::Rand; -use std::rand; +use rand::Rand; +use rand; use std::num::{One, Zero}; use std::vec; use traits::operations::ApproxEq; diff --git a/src/structs/dvec.rs b/src/structs/dvec.rs index 96023415..0e585b22 100644 --- a/src/structs/dvec.rs +++ b/src/structs/dvec.rs @@ -3,8 +3,8 @@ #[allow(missing_doc)]; // we hide doc to not have to document the $trhs double dispatch trait. use std::num::{Zero, One, Float}; -use std::rand::Rand; -use std::rand; +use rand::Rand; +use rand; use std::vec; use std::vec::{Items, MutItems}; use traits::operations::ApproxEq; diff --git a/src/structs/iso.rs b/src/structs/iso.rs index 5a2bb7a3..fd157ccb 100644 --- a/src/structs/iso.rs +++ b/src/structs/iso.rs @@ -3,7 +3,7 @@ #[allow(missing_doc)]; use std::num::{Zero, One}; -use std::rand::{Rand, Rng}; +use rand::{Rand, Rng}; use structs::mat::{Mat3, Mat4, Mat5}; use traits::structure::{Cast, Dim, Col}; use traits::operations::{Inv, ApproxEq}; diff --git a/src/structs/rot.rs b/src/structs/rot.rs index 874820fe..e64e6884 100644 --- a/src/structs/rot.rs +++ b/src/structs/rot.rs @@ -3,7 +3,7 @@ #[allow(missing_doc)]; use std::num::{Zero, One}; -use std::rand::{Rand, Rng}; +use rand::{Rand, Rng}; use traits::geometry::{Rotate, Rotation, AbsoluteRotate, RotationMatrix, Transform, ToHomogeneous, Norm, Cross}; use traits::structure::{Cast, Dim, Row, Col};