Show HN: LoopMix128 – Fast C PRNG (.46ns), 2^128 Period, BigCrush/PractRand Pass

LoopMix128 is a fast C PRNG I wrote for non-cryptographic tasks.

GitHub (MIT): https://github.com/danielcota/LoopMix128

Highlights:

* ~0.46 ns/value (GCC 11.4, -O3 -march=native), 75% faster than xoroshiro128++.

* Passes TestU01 BigCrush & PractRand (32TB).

* Guaranteed 2^128 period.

* Proven injective (192-bit state) via Z3 SMT solver; allows parallel streams.

* Core requires only stdint.h.

Seeking feedback on design, use cases, or further testing.


Comments URL: https://news.ycombinator.com/item?id=43949134

Points: 3

# Comments: 0

https://github.com/danielcota/LoopMix128

Erstellt 15h | 10.05.2025, 22:20:06


Melden Sie sich an, um einen Kommentar hinzuzufügen

Andere Beiträge in dieser Gruppe

Fan Service
11.05.2025, 09:50:12 | Hacker news
Show HN: I’m 16 years old and working on my first startup, a study app

As a student with a lot of notes I had a problem with studying fast for tests. So I created Notiv an AI study app that analyzes your notes and prepares you for test.


Comments URL:

11.05.2025, 09:50:08 | Hacker news