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