diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-06-06 11:40:57 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-06-06 13:16:49 +0200 |
commit | adef51556f04576e4c34a77dfc52b461770c7ff9 (patch) | |
tree | 8765eb5bf783276b68163612f1814532085b0b5b /net | |
parent | 3febc0a82aebbb70cdfa623f5d6ce0306583ec84 (diff) |
net, store: Bump rand to "0.5" and adapt code accordingly.
Diffstat (limited to 'net')
-rw-r--r-- | net/Cargo.toml | 2 | ||||
-rw-r--r-- | net/src/ipc.rs | 2 | ||||
-rw-r--r-- | net/tests/hkp.rs | 2 |
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}; |