mirror of
https://github.com/dalek-cryptography/ed25519-dalek.git
synced 2026-01-10 03:27:59 -05:00
Avoid using deprecated import path for rand::rngs::OsRng.
This commit is contained in:
@@ -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;
|
||||
///
|
||||
|
||||
@@ -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;
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user