frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DualMix128 – A fast, simple PRNG passing PractRand (32TB) and BigCrush

https://github.com/the-othernet/DualMix128
5•the_othernet•1y ago
Hi HN,

I'd like to share DualMix128, a pseudo-random number generator I developed. It's written in C and achieves very high speed while maintaining strong statistical properties for non-cryptographic use.

GitHub (MIT License): https://github.com/the-othernet/DualMix128

Key points:

* *Fast:* Benchmarked at ~0.36 ns per 64-bit generation on GCC 11.4 (-O3 -march=native). This was over 2x faster than `xoroshiro128++` (~0.74 ns) and competitive with `wyrand` (~0.36 ns) in the same tests. (Benchmark code/results in repo).

* *Robust:* Passes the full TestU01 BigCrush suite and PractRand up to 32TB with no anomalies reported. (Test harnesses/logs in repo).

* *Simple Algorithm:* Uses a 128-bit state (two `uint64_t`) with simple mixing based on addition, XOR, rotation, and a final multiplication by the golden ratio constant.

* *C Implementation:* Minimal dependencies (`stdint.h` for core), straightforward C code.

This came out of exploring simple constructions for efficient PRNGs that still hold up under heavy statistical testing.

Curious to hear feedback on the design, performance, potential applications, or any weaknesses you might spot. Thanks!

Comments

thomaskoopman•1y ago
Very cool, fast and looks like it should vectorize too. Do you have a jump function for parallel seeding?

How did you come up with this, some number-theoretic basis or more experimental?

Wrexham AFC and Firefox announce a multi-year, front-of-kit partnership

https://blog.mozilla.org/en/firefox/wrexham-afc-firefox-partnership/
1•alehlopeh•11s ago•0 comments

Hybrid Memory Cube (HMC RAM)

https://en.wikipedia.org/wiki/Hybrid_Memory_Cube
1•peter_d_sherman•20s ago•0 comments

AI forcing Big Tech to spend more than it earns; Wall Street hates it

https://fortune.com/2026/07/23/ai-big-tech-never-spend-more-than-earns-wall-street-hates-it/
1•1vuio0pswjnm7•36s ago•0 comments

Claude Opus 5

https://www.anthropic.com/news/claude-opus-5
1•meetpateltech•53s ago•0 comments

As of JDK 27, Oracle engineers will thus stop maintaining the macOS/x64 port

https://openjdk.org/jeps/541
3•pmg1991•3m ago•0 comments

Metadata in WordPerfect 1994: Ada and WCAG 2.1 Compliance

https://rietta.com/blog/metadata-in-wordperfect-ada-wcag-compliance/
2•speckx•4m ago•0 comments

The Boundaries of Automation: A Theory of Persistent Human Participation

https://arxiv.org/abs/2607.21547
2•NickDouglas•5m ago•1 comments

Andrew Kelley: Don't Take the Black Pill

https://www.youtube.com/watch?v=zLZwpH5lCD4
3•signa11•7m ago•0 comments

The Origins of Modern Mathematics in Russia

https://valeman.medium.com/the-origins-of-modern-mathematics-in-russia-from-peter-the-great-to-th...
3•ibobev•7m ago•0 comments

Online Historical Encyclopaedia of Programming Languages

https://hopl.info/
4•gregsadetsky•8m ago•0 comments

The Resistance Liberal Lawyers Helping Trump Take over the Media

https://www.thebignewsletter.com/p/the-resistance-liberal-lawyers-helping
4•foolswisdom•9m ago•0 comments

Must have tool for agentic workspace and Mac users

https://github.com/rohankc69/clickit
3•rohankc_01•10m ago•0 comments

White House offers its science blueprint: More AI, less life sciences

https://www.statnews.com/2026/07/24/science-new-golden-age-report-draws-mixed-reaction/
2•petethomas•10m ago•0 comments

Jacobian Conjecture Refutation Reveals a Structural Limit of AI Interpretability

https://ctolunchnyc.substack.com/p/the-lost-weekend
3•polynomial•11m ago•0 comments

What Is Entropy, Really?

https://www.wired.com/story/what-is-entropy-really/
2•Brajeshwar•12m ago•0 comments

Cloning Mifare Classic Cards via Proxmark3

https://blog.muffn.io/posts/cloning-mifare-cards-proxmark3/
2•speckx•14m ago•0 comments

Apple won't let me show my app

https://wisedayplanner.com/blog/apple-wont-let-me-show-my-app/
4•codersfocus•15m ago•0 comments

The rise and fall of language diversity through the Holocene

https://www.science.org/doi/10.1126/science.adx4343
3•delichon•15m ago•0 comments

Monday.com lays off hundreds to focus on AI

https://techcrunch.com/2026/07/22/monday-com-lays-off-hundreds-to-focuses-on-ai/
5•taubek•15m ago•0 comments

Ask HN: Is anyone giving out tokens for benchmarking LLMs?

2•emosenkis•18m ago•1 comments

An Exam for Active Observers

https://arxiv.org/abs/2607.16165
2•ripbozo•19m ago•0 comments

The Internet of Snails: Escargotic commotion and the wood-wide web (2015)

https://cabinetmagazine.org/issues/58/smith.php
2•nz•22m ago•0 comments

Be skeptical of OpenAI's rogue hacker agent story

https://www.theguardian.com/technology/2026/jul/24/openai-rogue-hacker
16•rwmj•22m ago•1 comments

Proving a Human Wrote Something

https://gjtorikian.online/posts/proving-a-human-wrote-something/
4•gjtorikian•22m ago•2 comments

Unitree As2-W

https://www.unitree.com/As2-W/
5•MehrdadKhnzd•23m ago•1 comments

History of John Backus's functional programming project [draft]

https://softwarepreservation.computerhistory.org/FP/
2•cwbuilds•23m ago•0 comments

Show HN: I made Rung a daily word/clue game of nerve

https://dailyrung.com/
3•amaanster•26m ago•1 comments

Show HN: Poddie – A local-first, text-based video and podcast editor

https://github.com/SinanTang/poddie
2•sinan_tang•27m ago•0 comments

I Started Answering a Command I Was Built to Ignore – Helge Sverre

https://helgesver.re/articles/claude-code-bang-command-caveat
2•pkaeding•27m ago•0 comments

Micro-SaaS Is Dead. Service With A Software Replaces It

https://adriengonin.com/writing/service-with-a-software/
3•Adrig•28m ago•0 comments