Change rand crate to crates.io version
This commit is contained in:
parent
d0418d4ba7
commit
f910355043
|
@ -12,3 +12,6 @@ path = "src/secp256k1.rs"
|
||||||
[dependencies.rust-crypto]
|
[dependencies.rust-crypto]
|
||||||
git = "https://github.com/DaGenix/rust-crypto.git"
|
git = "https://github.com/DaGenix/rust-crypto.git"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
rand = "*"
|
||||||
|
|
||||||
|
|
|
@ -44,10 +44,9 @@ extern crate test;
|
||||||
|
|
||||||
use std::intrinsics::copy_nonoverlapping;
|
use std::intrinsics::copy_nonoverlapping;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::rand::OsRng;
|
|
||||||
use std::sync::{Once, ONCE_INIT};
|
use std::sync::{Once, ONCE_INIT};
|
||||||
use libc::c_int;
|
use libc::c_int;
|
||||||
use rand::{Rng, SeedableRng};
|
use rand::{OsRng, Rng, SeedableRng};
|
||||||
|
|
||||||
use crypto::fortuna::Fortuna;
|
use crypto::fortuna::Fortuna;
|
||||||
|
|
||||||
|
@ -274,8 +273,7 @@ impl Secp256k1 {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use std::iter::repeat;
|
use std::iter::repeat;
|
||||||
use std::rand::thread_rng;
|
use rand::{Rng, thread_rng};
|
||||||
use rand::Rng;
|
|
||||||
|
|
||||||
use test::{Bencher, black_box};
|
use test::{Bencher, black_box};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue