Show HN: LoopMix128 – Fast C PRNG (.46ns), 2^128 Period, BigCrush/PractRand Pass
Published on: 2025-07-15 17:25:21
LoopMix128: Fast and Robust 2^128 Period PRNG
This repository contains LoopMix128 , an extremely fast pseudo-random number generator (PRNG) with a guaranteed period of 2^128, proven injectivity, and clean passes in both BigCrush and PractRand (32TB). It is designed for non-cryptographic applications where speed and statistical quality are important.
Features
High Performance: Significantly faster than standard library generators and competitive with or faster than other modern high-speed PRNGs like wyrand and xoroshiro128++.
Significantly faster than standard library generators and competitive with or faster than other modern high-speed PRNGs like wyrand and xoroshiro128++. Good Statistical Quality: Has passed TestU01's BigCrush suite and PractRand (up to 32TB) with zero anomalies.
Has passed TestU01's BigCrush suite and PractRand (up to 32TB) with zero anomalies. 2^128 Period: Minimum period length of 2^128 through its 128 bit low/high counter looping.
Minimum period length of 2
... Read full article.