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:
213213 toolchain : ${{ matrix.rust }}
214214 targets : ${{ matrix.target }}
215215 - 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 {
362362 #[ inline]
363363 fn generate( & mut self , r: & mut Self :: Results ) {
364364 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+ }
365369 }
366370 }
367371
@@ -1066,7 +1070,7 @@ pub(crate) mod tests {
10661070 tester_array = [ 0u8 ; LEN ] ;
10671071 dest_pos = 0 ;
10681072
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,
10701074 // down to 1 byte
10711075 for test_len in 1 ..=N {
10721076 let debug_start_word_pos = rng. get_word_pos ( ) ;
You can’t perform that action at this time.
0 commit comments