Avoid using deprecated import path for rand::rngs::OsRng.

This commit is contained in:
Isis Lovecruft
2018-12-30 02:26:05 +00:00
parent 486f23f1ad
commit 4ee77b915e
2 changed files with 2 additions and 2 deletions

View File

@@ -1083,7 +1083,7 @@ impl Keypair {
/// # fn main() {
///
/// use rand::Rng;
/// use rand::OsRng;
/// use rand::rngs::OsRng;
/// use ed25519_dalek::Keypair;
/// use ed25519_dalek::Signature;
///

View File

@@ -25,7 +25,7 @@
//! # #[cfg(feature = "std")]
//! # fn main() {
//! use rand::Rng;
//! use rand::OsRng;
//! use rand::rngs::OsRng;
//! use ed25519_dalek::Keypair;
//! use ed25519_dalek::Signature;
//!