Skip to content

Commit ab1087f

Browse files
author
TheIronBorn
committed
better comments
1 parent e9c7581 commit ab1087f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bigrand.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ impl<R: Rng + ?Sized> RandBigInt for R {
4343
let mut data = vec![BigDigit::default(); digits + (rem > 0) as usize];
4444
// `fill_bytes` is faster than many `gen::<u32>` calls
4545
self.fill_bytes(data[..].as_byte_slice_mut());
46-
// per the `Rng::fill` source, might be unnecessary if
47-
// reproducibility across architectures is not desired
46+
// Swap bytes per the `Rng::fill` source. This might be
47+
// unnecessary if reproducibility across architectures is not
48+
// desired.
4849
data.to_le();
4950
if rem > 0 {
5051
data[digits] >>= BITS - rem;

0 commit comments

Comments
 (0)