Update comment to doc comment

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Deirdre Connolly 2021-06-15 18:41:21 -04:00 committed by Deirdre Connolly
parent 2734357671
commit 53067d7370
1 changed files with 4 additions and 2 deletions

View File

@ -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();