Scalar::random should work with nostd.

* FIXES #166.
This commit is contained in:
Isis Lovecruft 2018-07-19 23:51:13 +00:00
parent 133afff5a7
commit 04f75767f3
Failed to extract signature

View file

@ -436,7 +436,6 @@ impl Scalar {
/// # Returns
///
/// A random scalar within /l.
#[cfg(feature = "std")]
pub fn random<T: Rng + CryptoRng>(rng: &mut T) -> Self {
let mut scalar_bytes = [0u8; 64];
rng.fill(&mut scalar_bytes);