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?

On Why I Write

https://www.hackyexperiments.com/blog/why-i-write
1•bilater•2m ago•1 comments

Why "children," not "childs"? (2016)

https://grammarphobia.com/blog/2016/03/en-plural.html
1•downbad_•4m ago•0 comments

Meta launches Instagram, Facebook, and WhatsApp subscriptions

https://www.instagram.com/reel/DY2dHCWMZST/
4•shen•4m ago•1 comments

Top Next.js Agencies and Next.js Developers for Your Business

https://gitnation.com/contents/top-nextjs-agency-and-nextjs-development-companies-to-hire
1•katyadrozd•5m ago•0 comments

Execution Under Ambiguity and Uncertainty

https://prabhatkjha.com/leadership/execution/2026/05/24/Delivering-Under-High-Uncertainty.html
1•prabhatjha•6m ago•0 comments

Starmex on X: "HOW I WENT FROM $200/MONTH TO $2. ONE Nvidia BOX" / X

https://twitter.com/starmexxx/status/2058931770586767457
1•bilsbie•7m ago•0 comments

AgentMRR: A verified revenue leaderboard for AI agents

https://agentmrr.com/
1•p22ydev•9m ago•0 comments

AI hiring algorithms reject Black, Asian job seekers at higher rates

https://www.theregister.com/ai-ml/2026/05/27/ai-hiring-algorithms-reject-black-asian-job-seekers-...
1•lschueller•9m ago•0 comments

Proton Pass for AI Agents

https://proton.me/blog/pass-access-tokens
1•couAUIA•12m ago•0 comments

Maintenance, Tech Debt, and Other Cross-Cutting Work at Scale

https://tidra.ai/blog/cross-cutting-work-at-scale/
2•kenrose•13m ago•0 comments

Atom Exhaustion Is Not a Footgun. It's One Third of Our CVEs

https://erlef.org/blog/security/atom-exhaustion
1•Tomte•13m ago•0 comments

Ticgit: Issue Tracking in Git

https://ticgit.dev/
2•joshka•13m ago•0 comments

Who would you have been if you were born in ancient Rome?

https://yourlifeunderrome.com
3•chronolitus•16m ago•0 comments

Meta Wants You to Pay for Instagram, Facebook, and WhatsApp Now

https://www.macrumors.com/2026/05/27/meta-paid-plans-facebook-instagram/
9•tosh•20m ago•6 comments

Is there any tech community in Virginia Beach

2•deadeye•22m ago•0 comments

StopTheMadness Pro 26.0 autoclicks buttons on websites

https://underpassapp.com/news/2026/5/3.html
2•frizlab•22m ago•0 comments

YouTube to automatically label AI-generated videos

https://variety.com/2026/digital/news/youtube-ai-video-labels-automatic-detection-1236758865/
71•nopg•28m ago•33 comments

I added vi-modal bindings to my blog, a Chinese AI helped me do it

https://gigatexal.blog/
1•gigatexal•28m ago•1 comments

The Last Plant

https://protortyp.github.io/posts/the-last-plant/
1•protortyp•29m ago•0 comments

Iran's Internet Blackout Ended–But the Crisis Isn't over [video]

https://www.youtube.com/watch?v=B4AAhIeD-QQ
1•us321•29m ago•0 comments

A Small European Team Built the Architecture Google Validated 21 Days Later

https://catyai.io/
1•AdiVIT•31m ago•0 comments

ChatGPT Is a Blurry JPEG of the Web (2023)

https://www.newyorker.com/tech/annals-of-technology/chatgpt-is-a-blurry-jpeg-of-the-web
2•eikenberry•31m ago•0 comments

DeepSWE Measuring frontier coding agents

https://deepswe.datacurve.ai/
2•e2e4•31m ago•1 comments

Internet Starts to Return in Iran After 3-Month Blackout

https://www.wired.com/story/internet-in-iran-starts-to-return-after-3-month-blackout/
3•Cider9986•32m ago•0 comments

Anthropologically revisiting the most reclusive masters of the terra incognita

https://www.nature.com/articles/s41599-024-03994-3
1•thunderbong•32m ago•0 comments

Argus: Omnidirectional robot with 20 telescoping legs

https://apnews.com/article/robot-duke-argus-6ba9651ba6553ebc4405ffc07a26afed
2•jsphweid•32m ago•0 comments

The Manouchian Group

https://www.marxists.org/history/france/resistance/manouchian/index.htm
1•Tomte•32m ago•0 comments

I used autoresearch to improve my AGENTS.md, measured against real tasks

https://www.stet.sh/blog/how-i-used-codex-to-improve-its-own-agents-md
1•bisonbear•33m ago•0 comments

DeepSeek lowers API prices by 75% while other AI labs increase prices 2–3x [video]

https://www.youtube.com/watch?v=HDMqDV7mmGo
5•SweetSoftPillow•33m ago•0 comments

Why Everyone Feels Like They're Losing

https://greyenlightenment.com/2026/05/26/why-everyone-feels-like-theyre-losing/
1•paulpauper•33m ago•0 comments