# File lib/backports/random/MT19937.rb, line 18
      def next_state
        STATE_SIZE.times do |i|
          mix = @state[i] & 0x80000000 | @state[i+1 - STATE_SIZE] & 0x7fffffff
          @state[i] = @state[i+OFFSET - STATE_SIZE] ^ (mix >> 1)
          @state[i] ^= 0x9908b0df if mix.odd?
        end
        @last_read = -1
      end