diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-02 11:33:24 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-12 11:31:43 +1100 |
| commit | 198caa87cd870f8fd52bf0bd5fe471cf439c12f0 (patch) | |
| tree | 3429f047229c85a48cc7214e8db9954c02be97a2 /src/libnum | |
| parent | 15e289846219cc3ad8b0225712bf2309f2c02439 (diff) | |
| download | rust-198caa87cd870f8fd52bf0bd5fe471cf439c12f0.tar.gz rust-198caa87cd870f8fd52bf0bd5fe471cf439c12f0.zip | |
Update users for the std::rand -> librand move.
Diffstat (limited to 'src/libnum')
| -rw-r--r-- | src/libnum/bigint.rs | 6 | ||||
| -rw-r--r-- | src/libnum/lib.rs | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libnum/bigint.rs b/src/libnum/bigint.rs index ea8720751d8..c6203b3f234 100644 --- a/src/libnum/bigint.rs +++ b/src/libnum/bigint.rs @@ -24,7 +24,7 @@ use std::from_str::FromStr; use std::num::CheckedDiv; use std::num::{Bitwise, ToPrimitive, FromPrimitive}; use std::num::{Zero, One, ToStrRadix, FromStrRadix}; -use std::rand::Rng; +use rand::Rng; use std::str; use std::uint; use std::vec; @@ -1470,7 +1470,7 @@ mod biguint_tests { use std::num::{Zero, One, FromStrRadix, ToStrRadix}; use std::num::{ToPrimitive, FromPrimitive}; use std::num::CheckedDiv; - use std::rand::{task_rng}; + use rand::{task_rng}; use std::str; use std::u64; use std::vec; @@ -2205,7 +2205,7 @@ mod bigint_tests { use std::num::CheckedDiv; use std::num::{Zero, One, FromStrRadix, ToStrRadix}; use std::num::{ToPrimitive, FromPrimitive}; - use std::rand::{task_rng}; + use rand::{task_rng}; use std::u64; #[test] diff --git a/src/libnum/lib.rs b/src/libnum/lib.rs index 8e42b01f14c..8ff042ba362 100644 --- a/src/libnum/lib.rs +++ b/src/libnum/lib.rs @@ -15,6 +15,8 @@ #[crate_type = "dylib"]; #[license = "MIT/ASL2"]; +extern crate rand; + pub mod bigint; pub mod rational; pub mod complex; |
