mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
parent
133afff5a7
commit
04f75767f3
1 changed files with 0 additions and 1 deletions
|
|
@ -436,7 +436,6 @@ impl Scalar {
|
||||||
/// # Returns
|
/// # Returns
|
||||||
///
|
///
|
||||||
/// A random scalar within ℤ/lℤ.
|
/// A random scalar within ℤ/lℤ.
|
||||||
#[cfg(feature = "std")]
|
|
||||||
pub fn random<T: Rng + CryptoRng>(rng: &mut T) -> Self {
|
pub fn random<T: Rng + CryptoRng>(rng: &mut T) -> Self {
|
||||||
let mut scalar_bytes = [0u8; 64];
|
let mut scalar_bytes = [0u8; 64];
|
||||||
rng.fill(&mut scalar_bytes);
|
rng.fill(&mut scalar_bytes);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue