We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c7581 commit ab1087fCopy full SHA for ab1087f
src/bigrand.rs
@@ -43,8 +43,9 @@ impl<R: Rng + ?Sized> RandBigInt for R {
43
let mut data = vec![BigDigit::default(); digits + (rem > 0) as usize];
44
// `fill_bytes` is faster than many `gen::<u32>` calls
45
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
+ // Swap bytes per the `Rng::fill` source. This might be
+ // unnecessary if reproducibility across architectures is not
48
+ // desired.
49
data.to_le();
50
if rem > 0 {
51
data[digits] >>= BITS - rem;
0 commit comments