frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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?

Kash Patel merch site hacked to trick users into installing malware

https://san.com/cc/kash-patels-personal-merch-site-hacked-to-trick-users-into-installing-malware/
1•impish9208•1m ago•0 comments

India's quiet redrawing of research integrity's accountability chain

https://www.researchinformation.info/analysis-opinion/indias-quiet-redrawing-of-research-integrit...
1•rustoo•2m ago•0 comments

Lattice: Grid-based space navigation for macOS

https://github.com/bryancostanich/lattice
2•keithba•2m ago•0 comments

Microsoft Drops Claude Code After Budget Overrun

https://aiweekly.co/alerts/microsoft-drops-claude-code-after-budget-overrun
1•robertkarl•3m ago•0 comments

TorQ: Kdb+ Production Framework

https://github.com/DataIntellectTech/TorQ
1•tosh•3m ago•0 comments

API to fix telemetry pathologies and calculate invariant proxies

https://dashboard.render.com/web/srv-d888rk8g4nts73et5fv0/deploys/dep-d888rkog4nts73et5ghg?r=2026...
1•Oliviana•4m ago•0 comments

CRTC to require streamers pay 15% of annual rev to support Canadian content

https://nationalpost.com/news/crtc-to-require-online-streamers-to-pay-15-of-annual-revenues-to-su...
1•fidotron•5m ago•0 comments

Why Ruby Still Feels Like Home After All These Years

https://caio.ca/blog/why-ruby-still-feels-like-home
1•birdculture•5m ago•0 comments

Alleged Kimwolf Botmaster 'Dort' Arrested, Charged in U.S. and Canada

https://krebsonsecurity.com/2026/05/alleged-kimwolf-botmaster-dort-arrested-charged-in-u-s-and-ca...
1•Brajeshwar•6m ago•0 comments

India has food safety laws. So why can't it guarantee safe food?

https://www.bbc.com/news/articles/c232mjxpx8no
1•rustoo•7m ago•0 comments

CBS Radio signs off after nearly 100 years of broadcasting

https://www.cbsnews.com/news/cbs-news-radio-last-day/
1•gscott•8m ago•0 comments

Venmo Takes Privacy Seriously

https://www.theverge.com/tech/927503/venmo-app-redesign-privacy-posts
1•TMWNN•9m ago•0 comments

Designing Firefox for the Future

https://blog.mozilla.org/en/firefox/new-firefox-design/
1•ohtz•9m ago•0 comments

Yt-dlp – [Announcement] Bun support is now limited and deprecated

https://github.com/yt-dlp/yt-dlp/issues/16766
1•tamnd•11m ago•0 comments

A Technical Deep Dive into the New Raycast

https://www.raycast.com/blog/a-technical-deep-dive-into-the-new-raycast
1•CharlesW•11m ago•0 comments

I used to own a tiny niche

https://newsletter.masilotti.com/p/i-used-to-own-a-tiny-niche
1•joemasilotti•11m ago•0 comments

Trump administration issues directive green card applicants to apply outside US

https://abcnews.com/US/trump-administration-issues-directive-requiring-green-card-applicants/stor...
2•LordAtlas•12m ago•0 comments

Reach Out and Say Thanks

https://www.kevinpowell.co/article/tell-someone-you-appreciate-them/
1•mooreds•14m ago•0 comments

Test Like You Fly

https://www.spacex.com/content/starship/test-like-you-fly
1•lawrenceyan•14m ago•0 comments

Politico agrees to shut down both AI tools at center of landmark arbitration

https://wbng.org/2026/05/22/politico-ai-arbitration-victory/
1•thm•14m ago•0 comments

Show HN: Agenda Intelligence MD – evidence-discipline MCP layer for agents

https://github.com/vassiliylakhonin/agenda-intelligence-md
1•vassilbek•16m ago•0 comments

I Bypassed Adobe and Microsoft to Build a Git-Tracked Book Production Pipeline

https://www.djspeckhals.com/posts/2026-05-22-how-i-bypassed-adobe-and-microsoft-to-build-a-git-tr...
1•dustin1114•17m ago•0 comments

Grant Lee (Gamma): Why founder conviction matters more

https://twitter.com/thisisgrantlee/status/2057098820371280210
1•nadis•20m ago•0 comments

Slopcop

https://slopcop.brokk.ai
1•indigodaddy•22m ago•0 comments

AI's Plummeting Prices Are a Software Story, Not a Hardware One

https://weightythoughts.com/p/ais-plummeting-prices-are-a-software
2•gmays•23m ago•1 comments

Snuffleupagus, a newly described species, is an adorable little predator

https://www.cbc.ca/radio/asithappens/snuffleupagus-fish-9.7207623
1•Brajeshwar•23m ago•0 comments

The Invisible Cliff: AI Development and Architectural Debt

https://mynock.substack.com/p/the-invisible-cliff-ai-development
3•mynock•25m ago•0 comments

Show HN: AI-Mirror - Self-optimising ranking engine for modern web applications.

https://aimirror.dev/
1•michaelcuneo•27m ago•0 comments

Annotations in Xeno-Canto

https://xeno-canto.org/article/318
2•kiproping•27m ago•0 comments

1940 Air Terminal Museum Begins Liquidation

https://www.1940airterminal.org/news/liquidation-of-simulators
5•weaponeer•29m ago•1 comments