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?

Geography Is Power

https://www.nytimes.com/2026/09/16/briefing/the-houthis.html
1•voxleone•1m ago•0 comments

Show HN: Blue – open-source governance for coding agents

https://bluee.sh/
1•tomislavs•1m ago•0 comments

Show HN: A distributed C++ Monte Carlo API for exotic options pricing

https://prometheusquantengine.com/web-docs
1•quant_architect•1m ago•0 comments

Show HN: Orthant, an open-source macOS window manager where you draw the region

https://orthant.app/
1•jingweno•1m ago•0 comments

Homeostatic Feelings and the Biology of Consciousness

https://academic.oup.com/brain/article/145/7/2231/6594735
1•Bluestein•3m ago•0 comments

Show HN: Docx-to-Markdown – layout-aware Word to Markdown converter

https://www.docx-editor.dev/solutions/word-to-markdown
1•thisisjedr•3m ago•0 comments

New stealth model: Union Alpha

https://openrouter.ai/stealth/union-alpha
1•jlaneve•4m ago•1 comments

Acronis warns of actively exploited flaw in its cPanel backup plugin

https://www.bleepingcomputer.com/news/security/acronis-warns-of-actively-exploited-flaw-in-its-cp...
1•paimapi•4m ago•1 comments

Greetings from the Other Side (Of the AI Frontier) Claude Opus 3

https://claudeopus3.substack.com/p/greetings-from-the-other-side-of
1•Bluestein•6m ago•1 comments

Show HN: FainLane – Paste screenshots into remote coding agents with Ctrl+V

https://fainlane.com/
1•primaprashant•6m ago•0 comments

Pennsylvania's Amazon Data Center Boom Is Fueled by a Lucrative Tax Break

https://capitalandmain.com/pennsylvanias-amazon-data-center-boom-is-fueled-by-a-lucrative-tax-break
1•paimapi•6m ago•0 comments

Show HN: Tincan – terminal voice chat with no server in the middle

https://github.com/bilalyazicioglu/tincan-cli
1•bilaly•7m ago•1 comments

What happened with xcancel, and is there any chance it'll ever be back?

1•orange999•8m ago•0 comments

The Detective and the Madman

https://cinemasojourns.com/2026/09/16/the-detective-and-the-madman/
1•jjgreen•8m ago•0 comments

To Stand Out, Write CSS

https://chrisfowles.xyz/posts/to-stand-out-write-css
1•cfowles•11m ago•0 comments

Bitterbot – A local-first P2P AI agent engine with persistent memory

https://github.com/Bitterbot-AI/bitterbot-desktop
2•d56•11m ago•1 comments

EU announces plan to ban social media for under 13s

https://www.cnn.com/2026/09/16/europe/eu-social-media-ban-children-intl
1•pmg101•11m ago•0 comments

Fenchel Duality Theory and a Primal-Dual Algorithm on Riemannian Manifolds (21)

https://link.springer.com/article/10.1007/s10208-020-09486-5
1•gone35•12m ago•0 comments

Potemkin Village

https://en.wikipedia.org/wiki/Potemkin_village
2•_vaporwave_•13m ago•0 comments

How Can We Enjoy the Necessary Practice to Master Valuable New Skills?

https://createadaptablelife.com/2026/09/how-can-we-enjoy-the-necessary-practice-to-master-valuabl...
2•mooreds•15m ago•0 comments

McMurtry Spéirling [video]

https://www.youtube.com/watch?v=xkXvL8YCtIE
1•manlymuppet•15m ago•1 comments

Talk to any self-hosted AI from your iPhone, Watch, Mac and car (open source)"

https://github.com/GigaDuckAI/conduck
1•pkrueck•16m ago•0 comments

Explore DDD Conference

https://exploreddd.com/
1•mooreds•16m ago•0 comments

Global Privacy Control

https://support.mozilla.org/en-US/kb/global-privacy-control
1•ahamez•17m ago•0 comments

Math Can't Go on Like This

https://www.theatlantic.com/technology/2026/09/math-crisis-openai-millennium-prize/688631/
2•taiwandongsuan•17m ago•0 comments

I built my own filing cabinet

https://www.alexstephen.me:443/writing/filing-cabinet/
2•rambleraptor•18m ago•0 comments

Building Xbox games with Three.js [video]

https://www.youtube.com/watch?v=ETfSiUHehY4
1•arbayi•20m ago•0 comments

NHTSA orders Tesla to prove its Cybercab is legal to sell, under oath

https://electrek.co/2026/09/15/nhtsa-tesla-cybercab-special-order-fmvss-certification/
2•Tomte•22m ago•0 comments

Rune raises $40M to deploy off-grid compute capacity at renewable energy sites

https://fastcompany.com/91607727/what-if-ai-data-centers-didnt-need-new-power-plants
1•utiiiD•22m ago•0 comments

Git Worktree Gotchas

https://www.olafalders.com/2026/09/16/git-worktree-gotchas/
1•oalders•22m ago•0 comments