summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml2
-rw-r--r--net/tests/hkp.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/Cargo.toml b/net/Cargo.toml
index 6750810f..ed9fbf64 100644
--- a/net/Cargo.toml
+++ b/net/Cargo.toml
@@ -41,7 +41,7 @@ url = "2.1"
zbase32 = "0.1.2"
[dev-dependencies]
-rand = { version = "0.6", default-features = false }
+rand = { version = "0.7", default-features = false }
[features]
default = ["compression"]
diff --git a/net/tests/hkp.rs b/net/tests/hkp.rs
index 7e08f215..6005cc69 100644
--- a/net/tests/hkp.rs
+++ b/net/tests/hkp.rs
@@ -124,7 +124,7 @@ fn start_server() -> SocketAddr {
let (tx, rx) = oneshot::channel::<SocketAddr>();
thread::spawn(move || {
let (addr, server) = loop {
- let port = OsRng::new().unwrap().next_u32() as u16;
+ let port = OsRng.next_u32() as u16;
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)),
port);
if let Ok(s) = Server::try_bind(&addr) {