Update comment to doc comment
Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
parent
2734357671
commit
53067d7370
|
@ -25,8 +25,10 @@ use rand_core::{CryptoRng, RngCore};
|
|||
|
||||
use super::{private::Sealed, scalar_mul::VartimeMultiscalarMul, *};
|
||||
|
||||
// Shim to generate a random 128bit value in a [u64; 4], without
|
||||
// importing `rand`.
|
||||
/// Shim to generate a random 128 bit value in a `[u64; 4]`, without
|
||||
/// importing `rand`.
|
||||
///
|
||||
/// The final 128 bits are zero.
|
||||
fn gen_128_bits<R: RngCore + CryptoRng>(mut rng: R) -> [u64; 4] {
|
||||
let mut bytes = [0u64; 4];
|
||||
bytes[0] = rng.next_u64();
|
||||
|
|
Loading…
Reference in New Issue