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

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;