File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -213,4 +213,4 @@ jobs:
213
213
toolchain : ${{ matrix.rust }}
214
214
targets : ${{ matrix.target }}
215
215
- uses : RustCrypto/actions/cross-install@master
216
- - run : RUSTFLAGS="${{ matrix.rustflags }}" cross test --package chacha20 --target ${{ matrix.target }}
216
+ - run : RUSTFLAGS="${{ matrix.rustflags }}" cross test --package chacha20 --target ${{ matrix.target }} --all-features
Original file line number Diff line number Diff line change @@ -362,6 +362,10 @@ macro_rules! impl_chacha_rng {
362
362
#[ inline]
363
363
fn generate( & mut self , r: & mut Self :: Results ) {
364
364
self . 0 . generate( & mut r. 0 ) ;
365
+ #[ cfg( target_endian = "big" ) ]
366
+ for word in r. 0 . iter_mut( ) {
367
+ * word = word. to_le( ) ;
368
+ }
365
369
}
366
370
}
367
371
@@ -1066,7 +1070,7 @@ pub(crate) mod tests {
1066
1070
tester_array = [ 0u8 ; LEN ] ;
1067
1071
dest_pos = 0 ;
1068
1072
1069
- // test fill_bytes with lengths starting at N bytes, decreasing by 1,
1073
+ // test fill_bytes with lengths starting at `N` bytes, decreasing by 1,
1070
1074
// down to 1 byte
1071
1075
for test_len in 1 ..=N {
1072
1076
let debug_start_word_pos = rng. get_word_pos ( ) ;
You can’t perform that action at this time.
0 commit comments