summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml2
-rw-r--r--net/src/ipc.rs2
-rw-r--r--net/tests/hkp.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/net/Cargo.toml b/net/Cargo.toml
index c48a7be9..061ece30 100644
--- a/net/Cargo.toml
+++ b/net/Cargo.toml
@@ -17,7 +17,7 @@ hyper-tls = "0.2"
libc = "0.2.33"
native-tls = "0.1.4"
percent-encoding = "1.0.1"
-rand = "0.4"
+rand = "0.5"
tokio-core = "0.1"
tokio-io = "0.1.4"
url = "1.6.0"
diff --git a/net/src/ipc.rs b/net/src/ipc.rs
index ba962b70..33afe3bf 100644
--- a/net/src/ipc.rs
+++ b/net/src/ipc.rs
@@ -391,7 +391,7 @@ impl Server {
struct Cookie(Vec<u8>);
extern crate rand;
-use self::rand::Rng;
+use self::rand::RngCore;
use self::rand::os::OsRng;
const COOKIE_SIZE: usize = 32;
diff --git a/net/tests/hkp.rs b/net/tests/hkp.rs
index b2d68bb0..4acbf56d 100644
--- a/net/tests/hkp.rs
+++ b/net/tests/hkp.rs
@@ -12,7 +12,7 @@ use http::{Request, Response};
use hyper::{Server, Body};
use hyper::service::service_fn;
use hyper::{Method, StatusCode};
-use rand::Rng;
+use rand::RngCore;
use rand::os::OsRng;
use std::io::Cursor;
use std::net::{SocketAddr, IpAddr, Ipv4Addr};