Make use rand::... gated on cfg(feature = "rand")

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 #108
This commit is contained in:
Chris Beck 2020-08-04 11:58:07 -07:00
parent ae0b48b0cd
commit bb82d616de

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;