Merge pull request #139 from garbageslam/fixup_rand_usage

Make `use rand::...` gated on `cfg(feature = "rand")`
This commit is contained in:
isis agora lovecruft 2020-09-21 23:47:26 +00:00 committed by GitHub
commit 7155c07afa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;