Skip to content

Commit

Permalink
Merge pull request #139 from garbageslam/fixup_rand_usage
Browse files Browse the repository at this point in the history
Make `use rand::...` gated on `cfg(feature = "rand")`
  • Loading branch information
isislovecruft authored Sep 21, 2020
2 parents 036c18a + bb82d61 commit 7155c07
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 7155c07

Please sign in to comment.