# File lib/thread_safe/util/xor_shift_random.rb, line 26 def xorshift(x) x ^= x >> 3 x ^= (x << 1) & MAX_INT # cut-off Bignum overflow x ^= x >> 14 end