Haskell implementation of a Xorshift random generator