Implementing crude XorShift, the same one as Go and C