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?

Foxconn confirms cyberattack after Nitrogen claims Apple, Nvidia data theft

https://www.theregister.com/cyber-crime/2026/05/12/foxconn-confirms-cyberattack-after-nitrogen-cl...
1•y1n0•2m ago•0 comments

When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug

https://blog.cloudflare.com/quic-death-spiral-fix/
1•sbulaev•4m ago•0 comments

Scaling MCP adoption: Our ref architecture – simpler,safer&cheaper deployments

https://blog.cloudflare.com/enterprise-mcp/
1•Daviey•4m ago•0 comments

What the Heck Is Reflection?

https://www.murathepeyiler.com/what-the-heck-is-reflection/
1•HeliumHydride•4m ago•0 comments

Tesla moves Basic Autopilot features to paid FSD where available

https://electrek.co/2026/05/12/tesla-removes-basic-autopilot-netherlands-fsd-only/
1•y1n0•6m ago•0 comments

Mini Shai-Hulud Is Back: NPM Worm Hits over 160 Packages, Including Mistral

https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised
1•cebert•6m ago•1 comments

The Silence That Meets the Rape of Palestinians

https://www.nytimes.com/2026/05/11/opinion/israel-palestinians-sexual-violence.html
2•Zaheer•7m ago•0 comments

Anthropic in Talks to Raise Funding at a $950B Valuation

https://www.nytimes.com/2026/05/12/technology/anthropic-funding-950-billion-valuation.html
2•y1n0•9m ago•0 comments

Mythos for Offensive Security: XBOW's Evaluation

https://xbow.com/blog/mythos-offensive-security-xbow-evaluation
1•tedsanders•12m ago•0 comments

Show HN: Display.dev, agent-native way to publish HTML or MD behind company auth

https://display.dev/
1•CarlRannaberg•14m ago•0 comments

World Record Solver for Minimum Line Cover of Prime Points Cuts Time to 22

https://prime-line-cover.vercel.app/?article
1•birdculture•16m ago•0 comments

Fluxspeak – make people sound human while reading

https://github.com/skorotkiewicz/freeflow/tree/main/fluxspeak
1•modinfo•18m ago•0 comments

Show HN: Rs-pug – A scriptable terminal music player written in Rust with Lua

https://github.com/JustRoccat/rs-pug
1•coldbrxthe•20m ago•0 comments

AI load breaks GitHub – why not other vendors?

https://blog.pragmaticengineer.com/the-pulse-ai-load-breaks-github/
4•esafak•22m ago•1 comments

Lukashenko Says Belarus Is Preparing for War, Plans to "Mobilize Units"

https://united24media.com/world/lukashenko-says-belarus-is-preparing-for-war-plans-to-mobilize-un...
2•arpadav•30m ago•0 comments

Android 17 will soon tell you whether your OS is legit

https://www.androidauthority.com/android-17-os-verification-3665868/
2•gumby271•32m ago•0 comments

The Cost of Doing Business: How SF's Tax Structure Constrains Economic Growth [pdf]

https://www.bayareaeconomy.org/files/pdf/CostofDoingBusiness_TaxStudy_May2026.pdf
2•littlexsparkee•33m ago•1 comments

In the Vacuum of AI Legislation, Libraries Have the Playbook

https://www.techdirt.com/2026/05/11/in-the-vacuum-of-ai-legislation-libraries-have-the-playbook/
2•hn_acker•37m ago•0 comments

Kraftwerk's radical 1976 track

https://www.bbc.com/culture/article/20260511-kraftwerks-radical-1976-track-radioactivity-became-a...
15•tcp_handshaker•37m ago•0 comments

Clusters become personal (like PCs did)

https://aranya.tech/blog/arrival-of-the-personal-cluster
2•druid•38m ago•0 comments

Tell NYT, Atlantic, USA Today to Keep Wayback Machine

https://www.savethearchive.com/newsleaders/
2•doener•38m ago•1 comments

Musk said control of OpenAI should go to his children, Sam Altman tells jury

https://www.bbc.com/news/articles/czj2k2exdzlo
2•tcp_handshaker•39m ago•0 comments

A Remarkably Luminous Galaxy at Zspec = 14.44 Confirmed with JWST

https://arxiv.org/abs/2505.11263
2•tcp_handshaker•41m ago•1 comments

Scientists Confirm 'Brain-Eating Amoeba' Is Widespread Yellowstone Grand Teton

https://cowboystatedaily.com/2026/05/12/scientists-confirm-brain-eating-amoeba-is-widespread-in-y...
3•Bender•42m ago•0 comments

What We Think About When We Think About Benchmarking

https://www.paradedb.com/blog/what-we-think-about-when-we-think-about-benchmarking
1•jamesgresql•42m ago•1 comments

FDA chief resigns after Trump admin forced approval of fruity e-cigs

https://arstechnica.com/health/2026/05/fda-chief-resigns-after-trump-admin-forced-approval-of-fru...
6•Bender•43m ago•0 comments

The newest AI boom pitch: Host a mini data center at your home

https://arstechnica.com/ai/2026/05/the-newest-ai-boom-pitch-host-a-mini-data-center-at-your-home/
2•Bender•44m ago•0 comments

Show HN: Clodcapture – save and resume Claude.ai chats across sessions

https://chromewebstore.google.com/detail/clodcapture/mhapejnhlmepeinjmlppoopcoicmgojb
1•leo_agent•45m ago•1 comments

Cherry Kearton: The eccentric influence on a young Sir David Attenborough

https://www.bbc.com/future/article/20260507-cherry-kearton-the-eccentric-influence-on-a-young-sir...
1•breve•49m ago•0 comments

Two more public disclosures, it will never stop

https://deadeclipse666.blogspot.com/2026/05/two-more-public-disclosures-it-will.html
1•Animux•49m ago•0 comments