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
No known key found for this signature in database
GPG key ID: AB41313533E8E812
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;
//!