fn pcg32(state: &mut u64) -> [u8; 4] {
            const MUL: u64 = 6364136223846793005;
            const INC: u64 = 11634580027462260723;

            // We advance the state first (to get away from the input value,
            // in case it has low Hamming Weight).
            *state = state.wrapping_mul(MUL).wrapping_add(INC);
            let state = *state;

            // Use PCG output function with to_le to generate x:
            let xorshifted = (((state >> 18) ^ state) >> 27) as u32;
            let rot = (state >> 59) as u32;
            let x = xorshifted.rotate_right(rot);
            x.to_le_bytes()
        }
// We use PCG32 to generate a u32 sequence, and copy to the seed
We use PCG32 to generate a u32 sequence, and copy to the seed
We use PCG32 to generate a u32 sequence and copy to the seed
fn pcg32(state: &mut u64) -> [u8; 4] {
            const MUL: u64 = 6364136223846793005;
            const INC: u64 = 11634580027462260723;
            // We advance the state first (to get away from the input value,
            // in case it has low Hamming Weight).
            *state = state.wrapping_mul(MUL).wrapping_add(INC);
            let state = *state;
            // Use PCG output function with to_le to generate x:
            let xorshifted = (((state >> 18) ^ state) >> 27) as u32;
            let rot = (state >> 59) as u32;
            let x = xorshifted.rotate_right(rot);
            x.to_le_bytes()
        }
fn pcg32 ( state : & mut u64 ) -> [ u8 ; 4 ] { const MUL : u64 = 6364136223846793005 ; const INC : u64 = 11634580027462260723 ; // We advance the state first (to get away from the input value, // in case it has low Hamming Weight). * state = state . wrapping_mul ( MUL ) . wrapping_add ( INC ) ; let state = * state ; // Use PCG output function with to_le to generate x: let xorshifted = ( ( ( state >> 18 ) ^ state ) >> 27 ) as u32 ; let rot = ( state >> 59 ) as u32 ; let x = xorshifted . rotate_right ( rot ) ; x . to_le_bytes ( ) }
We use PCG32 to generate a u32 sequence, and copy to the seed
We use PCG32 to generate a u32 sequence and copy to the seed
state
&mut u64