splitmix
Fast Splittable PRNG
Pure Haskell implementation of SplitMix described in
Guy L. Steele, Jr., Doug Lea, and Christine H. Flood. 2014.
Fast splittable pseudorandom number generators. In Proceedings
of the 2014 ACM International Conference on Object Oriented
Programming Systems Languages & Applications (OOPSLA '14). ACM,
New York, NY, USA, 453-472. DOI:
<https://doi.org/10.1145/2660193.2660195>
The paper describes a new algorithm /SplitMix/ for /splittable/
pseudorandom number generator that is quite fast: 9 64 bit arithmetic/logical
operations per 64 bits generated.
/SplitMix/ is tested with two standard statistical test suites (DieHarder and
TestU01, this implementation only using the former) and it appears to be
adequate for "everyday" use, such as Monte Carlo algorithms and randomized
data structures where speed is important.
In particular, it __should not be used for cryptographic or security applications__,
because generated sequences of pseudorandom values are too predictable
(the mixing functions are easily inverted, and two successive outputs
suffice to reconstruct the internal state).
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.3.2 | 2026-01-04 21:10 UTC | phadej | +24/−1500 lines, 19 filesdep −asyncdep −base-compat-batteriesdep −bytestringdep ~basedep ~deepseqdep ~timePVP ok | |
| 0.1.3.1 | 2025-06-26 20:35 UTC | phadej | +30/−3 lines, 3 filesdep +template-haskelldep ~basePVP ok | |
| 0.1.3 | 2025-06-25 18:35 UTC | phadej | +54/−57 lines, 5 filesPVP ok | |
| 0.1.2 | 2025-06-09 17:17 UTC | phadej | +16/−38 lines, 3 filesPVP ok | |
| 0.1.1 | 2024-12-19 14:34 UTC | phadej | +29/−89 lines, 7 filesdep −base-compatdep −clockdep ~HUnitdep ~basedep ~base-compat-batteriesPVP ok | |
| 0.1.0.5 | 2023-10-03 18:26 UTC | phadej | 1 revisions | +17/−12 lines, 1 filesdep ~basedep ~base-compatdep ~base-compat-batteriesPVP ok |
| 0.1.0.4 | 2021-10-30 00:16 UTC | phadej | 2 revisions | +355/−9 lines, 5 filesdep ~basedep ~base-compatdep ~base-compat-batteriesPVP ok |
| 0.1.0.3 | 2020-10-22 09:31 UTC | phadej | +14/−3 lines, 4 filesPVP ok | |
| 0.1.0.2 | 2020-10-19 11:08 UTC | phadej | +216/−44 lines, 8 filesdep ~basePVP ok | |
| 0.1.0.1 | 2020-08-06 19:36 UTC | phadej | +29/−3 lines, 4 filesdep ~basedep ~timePVP ok | |
| 0.1 | 2020-05-28 16:06 UTC | phadej | +35/−66 lines, 6 filesdep ~randomPVP ok | |
| 0.0.5 | 2020-05-28 15:16 UTC | phadej | +646/−46 lines, 11 filesdep +base-compatdep +math-functionsdep +test-frameworkdep ~basedep ~base-compat-batteriesdep ~containersPVP ok | |
| 0.0.4 | 2020-02-24 18:49 UTC | phadej | +89/−8 lines, 4 filesPVP ok | |
| 0.0.3 | 2019-07-30 09:40 UTC | phadej | 1 revisions | +787/−64 lines, 12 filesdep +HUnitdep +clockdep ~basedep ~randomdep ~timePVP ok |
| 0.0.2 | 2019-03-24 19:56 UTC | phadej | +121/−49 lines, 4 filesdep ~basedep ~base-compat-batteriesdep ~bytestringPVP ok | |
| 0.0.1 | 2018-05-16 09:15 UTC | phadej | 1 revisions | +416/−124 lines, 6 filesdep +asyncdep +base-compat-batteriesdep +deepseqdep −base-compatdep ~basedep ~containersdep ~criterionPVP ok |
| 0 | 2017-06-30 20:46 UTC | phadej | 2 revisions | +523/−0 lines, 8 filesdep +basedep +base-compatdep +bytestringsetup-changed |
Dependencies of splitmix-0.1.3.2
HUnit >=1.6.0.0 && <1.7 1.6.1.0 → 1.6.2.0
| 2021-01-19 18:27 UTC | 1.6.2.0 | +48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested |
| 2020-10-31 12:09 UTC | 1.6.1.0 | +35/−21 lines, 4 filesPVP ok |
| 2017-03-20 01:42 UTC | 1.6.0.0 | +9/−5 lines, 4 filesdep ~basePVP ok |
| 2016-10-16 03:35 UTC | 1.5.0.0 outside bounds | +47/−27 lines, 5 filesPVP ok |
| 2016-10-07 03:13 UTC | 1.4.0.0 outside bounds | +761/−778 lines, 12 filesdep +call-stackPVP ok |
showing 5 of 22 versions
base >=4.12.0.0 && <4.23 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
deepseq >=1.4.4.0 && <1.6 1.5.2.0 → 1.6.0.0 newer than bounds
| 2024-09-08 16:18 UTC | 1.6.0.0 newer than bounds | +5/−14 lines, 3 filesdep ~basePVP ok |
| 2025-06-14 22:25 UTC | 1.5.2.0 | +13/−4 lines, 3 filesPVP: major bump suggested |
| 2024-09-09 12:48 UTC | 1.5.1.0 | +69/−14 lines, 3 filesdep −arraydep ~basePVP: major bump suggested |
| 2023-07-27 19:32 UTC | 1.5.0.0 | +619/−532 lines, 5 filesdep ~basePVP ok |
| 2022-12-18 00:14 UTC | 1.4.8.1 | +34/−9 lines, 3 filesdep ~basePVP: major bump suggested |
showing 5 of 26 versions
template-haskell >=0 2.23.0.0 → 2.24.0.0
| 2025-12-19 11:53 UTC | 2.24.0.0 | +606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok |
| 2024-12-16 09:29 UTC | 2.23.0.0 | +104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok |
| 2024-05-15 13:07 UTC | 2.22.0.0 | +176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-10-10 00:23 UTC | 2.21.0.0 | +275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-03-28 13:43 UTC | 2.20.0.0 | +215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok |
showing 5 of 26 versions
time >=1.2.0.3 && <1.16 1.15 → 1.16.0.1 newer than bounds
| 2026-07-20 21:55 UTC | 1.16.0.1 newer than bounds | +1203/−148 lines, 25 filesPVP ok |
| 2026-05-03 08:43 UTC | 1.16 newer than bounds | +353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok |
| 2025-08-04 16:22 UTC | 1.15 | +1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok |
| 2024-03-10 22:18 UTC | 1.14 | +6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok |
| 2021-10-18 05:36 UTC | 1.13 | +1279/−1589 lines, 59 filesdep ~basePVP ok |
showing 5 of 48 versions
Reverse dependencies
39 packages depend on splitmix; 3 have bounds that exclude 0.1.3.2