HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulebasement-0.0.16Haskell2010

Basement.Alg.XorShift

XorShift variant: Xoroshiro128+ https://en.wikipedia.org/wiki/Xoroshiro128%2B

Xoroshiro128+ is a PRNG that uses a shift/rotate-based linear transformation. This is lar

C implementation at: http://xoroshiro.di.unimi.it/xoroshiro128plus.c

Synopsis
  • Packagebasement-0.0.16
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceXorShift.hs
valuenext :: State -> (Word64 -> State -> a) -> a

Given a state, call the function f with the generated Word64 and the next State