Skip to content

Commit 2591827

Browse files
committed
Replaced ChaCha12 with ChaCha8 in shuffle for performance reasons
1 parent 6fd16c6 commit 2591827

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zip/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub(super) fn expand<N: Integer, M: Integer + for<'a> From<&'a N>>(narrow_int: &
137137

138138
/// Reorder the elements in slice using the given randomness seed
139139
pub(super) fn shuffle_seeded<T>(slice: &mut [T], seed: [u8; 32]) {
140-
let mut rng = rand_chacha::ChaCha12Rng::from_seed(seed);
140+
let mut rng = rand_chacha::ChaCha8Rng::from_seed(seed);
141141
slice.shuffle(&mut rng);
142142
}
143143

0 commit comments

Comments
 (0)