Update to latest rust.

`std::rand` was moved to it's own crate.
Version of rustc: rustc 0.10-pre (4d64441 2014-03-12 15:07:06 -0700)
This commit is contained in:
Peter Nguyen 2014-03-13 17:44:14 -04:00
parent 13430866d4
commit 7bc561c835
5 changed files with 7 additions and 6 deletions

View File

@ -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)]

View File

@ -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;

View File

@ -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;

View File

@ -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};

View File

@ -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};