HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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

  • 1 type
  • 3 values
  • 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