File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl<R: BlockRngCore<Item = u32>> RngCore for BlockRng<R> {
197
197
fn next_u64 ( & mut self ) -> u64 {
198
198
let read_u64 = |results : & [ u32 ] , index| {
199
199
let data = & results[ index..=index + 1 ] ;
200
- u64:: from ( data[ 1 ] ) << 32 | u64:: from ( data[ 0 ] )
200
+ ( u64:: from ( data[ 1 ] ) << 32 ) | u64:: from ( data[ 0 ] )
201
201
} ;
202
202
203
203
let len = self . results . as_ref ( ) . len ( ) ;
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ impl SeedableRng for Mcg128Xsl64 {
234
234
// Read as if a little-endian u128 value:
235
235
let mut seed_u64 = [ 0u64 ; 2 ] ;
236
236
le:: read_u64_into ( & seed, & mut seed_u64) ;
237
- let state = u128:: from ( seed_u64[ 0 ] ) | u128:: from ( seed_u64[ 1 ] ) << 64 ;
237
+ let state = u128:: from ( seed_u64[ 0 ] ) | ( u128:: from ( seed_u64[ 1 ] ) << 64 ) ;
238
238
Mcg128Xsl64 :: new ( state)
239
239
}
240
240
}
You can’t perform that action at this time.
0 commit comments