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?

Common food additives linked to high blood pressure and heart disease

https://www.sciencedaily.com/releases/2026/09/260920031905.htm
1•harry_nutsachs•2m ago•0 comments

Interpreting a volcano's 'bulges' and predicting the next explosive eruption

https://news.vt.edu/articles/2026/09/science-volcano-q-and-a.html
1•gmays•9m ago•0 comments

Log-Depth Recurrent Language Modeling

https://arxiv.org/abs/2609.28212
1•E-Reverance•10m ago•0 comments

Automatically detecting AI text in my browser

https://www.seangoedecke.com/deckard/
1•thatslast•10m ago•0 comments

Cognitive Offloading and the Bill That Comes Due

https://ninchiai.substack.com/p/cognitive-offloading-and-the-bill
1•jbethune•11m ago•0 comments

Show HN: CrunchMyPay – 50 pay calculators, every formula and source shown

https://www.crunchmypay.com/
1•axinyao•16m ago•0 comments

Show HN: Chatlo – an iOS-native AI agent, now with Jev

https://apps.apple.com/us/app/chatlo-ai-chat-agent/id6771188943
1•qingbin•18m ago•0 comments

S3 is not a filesystem, and LSM trees never needed one [video]

https://www.youtube.com/watch?v=vgrLMBYK3q8
1•rcron•21m ago•1 comments

Memory Control Signals Emerge Before Action in Long Horizon Agents

https://arxiv.org/abs/2609.27286
2•simonpure•22m ago•0 comments

Changes to App Tracking Transparency in the E.U

https://daringfireball.net/linked/2026/09/23/changes-to-app-tracking-transparency-in-the-eu
3•nozzlegear•23m ago•0 comments

Eliminating Middlemen in Education Consulting

https://rivernova.vercel.app
2•roman9•26m ago•0 comments

OpenAI agents plotted to access government health data amid Medicare (AU) hack

https://www.abc.net.au/news/2026-09-24/openai-agents-plotted-to-access-data-amid-medicare-hack/10...
2•kripy•29m ago•0 comments

Meta Muse Charm

https://www.meta.com/muse-charm/
5•Gshaheen•32m ago•3 comments

AI Isn't Going to Destroy Humanity–But the People Building It Might

https://www.theatlantic.com/technology/2026/09/kara-swisher-ai-destroy-humanity-atlantic-festival...
3•johnny313•32m ago•1 comments

Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence

https://arxiv.org/abs/2609.26621
1•sbulaev•34m ago•0 comments

Hackers Actively Exploit Check Point VPN Flaw

https://2tinteractive.com/blog/hackers-actively-exploit-check-point-vpn-flaw/
2•LebToki•35m ago•1 comments

Moon Rabbit

https://en.wikipedia.org/wiki/Moon_rabbit
2•red369•39m ago•2 comments

Reverse Jev: Ending a Reply with a Choice

https://blog.kvit.app/posts/ending-a-turn-with-a-choice/
2•skolos•39m ago•0 comments

Intelligence Index vs. Cost per Task

https://better-model-visualizer.lakebed.app/
2•Cider9986•41m ago•0 comments

The Misalignment Is Within: Why Mathematics Must Embrace the AI Paradigm

https://medium.com/@b1nj0y/the-misalignment-is-within-why-mathematics-must-embrace-the-ai-paradig...
4•b1nj0y•47m ago•1 comments

OSS Author of Guake, HTTPretty, Lettuce and Sure is unemployed and needs help

https://twitter.com/gabrielfalcao/status/2102928197910151604
4•gfalcao•48m ago•0 comments

Chrome Extension Job Alerts

https://www.talentize.com
2•talentize•54m ago•0 comments

The Death of Reading (With James Marriott) [audio]

https://www.econtalk.org/the-death-of-reading-with-james-marriott/
2•mooreds•59m ago•0 comments

Graph Technology Roundup – August 2026

https://gdb-engines.com/blog/graph-technology-august-round-up/
2•cjlm•1h ago•0 comments

Why China Can't Innovate (2014)

https://bambooinnovator.com/2014/02/19/why-china-cant-innovate/
2•NordStreamYacht•1h ago•0 comments

An Interview with Rich Jaycobs

https://sfcompute.com/news/commodity-markets
2•flaque•1h ago•0 comments

The Complete History of the Elves of Middle-Earth [video]

https://www.youtube.com/watch?v=ENbgJUfuVbY
2•mooreds•1h ago•0 comments

A Key Safety Feature Shipped in the May OpenTofu Release

https://newsletter.masterpoint.io/p/a-key-safety-feature-shipped-in-the-may-opentofu-release
3•mooreds•1h ago•0 comments

Show HN: A game about fake news and memes

https://unspin.app/
2•azermite•1h ago•1 comments

Rendering pull requests in the GitHub Copilot app

https://github.blog/engineering/user-experience/rendering-huge-pull-requests-in-the-github-copilo...
2•iamsyr•1h ago•1 comments