Index: postgres-protocol/Cargo.toml
===================================================================
--- postgres-protocol.orig/Cargo.toml
+++ postgres-protocol/Cargo.toml
@@ -52,7 +52,7 @@ version = "0.10"
 version = "2.0"
 
 [dependencies.rand]
-version = "0.9"
+version = "0.10"
 
 [dependencies.sha2]
 version = "0.10"
Index: postgres-protocol/src/password/mod.rs
===================================================================
--- postgres-protocol.orig/src/password/mod.rs
+++ postgres-protocol/src/password/mod.rs
@@ -11,7 +11,7 @@ use base64::display::Base64Display;
 use base64::engine::general_purpose::STANDARD;
 use hmac::{Hmac, Mac};
 use md5::Md5;
-use rand::RngCore;
+use rand::Rng;
 use sha2::digest::FixedOutput;
 use sha2::{Digest, Sha256};
 
Index: postgres-protocol/src/authentication/sasl.rs
===================================================================
--- postgres-protocol.orig/src/authentication/sasl.rs
+++ postgres-protocol/src/authentication/sasl.rs
@@ -5,6 +5,7 @@ use base64::engine::general_purpose::STA
 use base64::Engine;
 use hmac::{Hmac, Mac};
 use rand::{self, Rng};
+use rand::RngExt;
 use sha2::digest::FixedOutput;
 use sha2::{Digest, Sha256};
 use std::fmt::Write;
