Skip to content

Commit

Permalink
Make use rand::... gated on cfg(feature = "rand")
Browse files Browse the repository at this point in the history
This is no longer actively breaking our no_std build, but I think
it's still technically a minor bug, and further case of issue dalek-cryptography#108
  • Loading branch information
cbeck88 committed Aug 4, 2020
1 parent ae0b48b commit bb82d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use curve25519_dalek::digest::Digest;
use curve25519_dalek::edwards::CompressedEdwardsY;
use curve25519_dalek::scalar::Scalar;

#[cfg(feature = "rand")]
use rand::{CryptoRng, RngCore};

use sha2::Sha512;
Expand Down

0 comments on commit bb82d61

Please sign in to comment.