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?

Who is behind the AI safety backlash?

https://twitter.com/TheMidasProj/status/2103577207700365719
1•pretext•2m ago•0 comments

The OpenAI "Hack" of Australia's Medicare That Wasn't

https://twitter.com/eastmelbgroupie/status/2102960384777040285
1•flgb•8m ago•0 comments

Chat Control 2.0: Next Tuesday, a permanent decision could be made

https://reddit.com/r/tutanota/comments/1wpyild/next_tuesday_a_permanent_decision_on_chat_control/
1•latexr•10m ago•0 comments

Can a language model run in Linux eBPF?

https://eunomia.dev/blog/2026/09/24/qwen3-ebpf-in-kernel-inference/
5•RohanAdwankar•14m ago•2 comments

Flip Fluid on Flip Dots

https://mitxela.com/projects/flipflip
2•blutack•16m ago•0 comments

The far side of the Moon provides clues to a previous magnetic field

https://ethz.ch/en/news-and-events/eth-news/news/2026/09/the-far-side-of-the-moon-provides-clues-...
2•croes•16m ago•0 comments

Show HN: Print Graph Paper

https://printgraphpaper.app/
1•artiomartiom•20m ago•0 comments

Internal memos: Microsoft shakes up communications as Nadella makes a push to

https://www.geekwire.com/2026/internal-memos-microsoft-shakes-up-communications-as-nadella-makes-...
1•GloVin•23m ago•0 comments

Voyager is slowly going dark

https://twitter.com/rainmaker1973/status/2103688510758965417
1•taubek•24m ago•0 comments

Microservices are organizational debt disguised as architecture

https://martinfowler.com/bliki/MonolithFirst.html
3•birdculture•32m ago•0 comments

Is your Postgres migration safe or not safe?

https://safenotsafe.dev/
1•vira28•33m ago•0 comments

Biggest design mistake I made when we moved OpenClaw to SQLite: using sync db

https://twitter.com/steipete/status/2103648679169257737
1•tosh•33m ago•0 comments

Reverse Engineering Fortinet with Ablation

https://github.com/Ablation-Tool/ablation
1•zellkernel•36m ago•1 comments

Jev4j

https://github.com/maxsumrall/jev4j
1•jsumrall•38m ago•1 comments

Wiki Deep dive into Standard diving dress

https://en.wikipedia.org/wiki/Standard_diving_dress
1•sans_souse•38m ago•0 comments

We asked Seedance, Veo and Kling to spill a glass of water. None of them could

https://humansignal.com/blog/how-to-teach-a-robot-to-water-the-table/
1•ReDeiPirati•53m ago•0 comments

The Library After Dark – a walkable 3D library of 600 public-domain books

https://libraryafterdark.space
2•theaijournalope•55m ago•0 comments

Show HN: Fast image/video viewer for Linux in Rust and gtk4. Carosello

https://github.com/grigio/carosello
1•grigio•55m ago•0 comments

Why I'm Building Muse

https://twitter.com/alexandr_wang/status/2103551714536439951
1•tosh•1h ago•1 comments

Young organs may not be a fountain of youth for recipients

https://www.technologyreview.com/2026/09/25/1145083/young-organs-may-not-be-a-fountain-of-youth-f...
1•joozio•1h ago•0 comments

If we do not stop to help each other, what do we become?

https://blog.codinghorror.com/if-we-do-not-stop-to-help-each-other-what-do-we-become/
3•AndrewDucker•1h ago•1 comments

Anybody has experience with maintaining self hosted Git?

1•tusharmaroo•1h ago•1 comments

Alberta's image as world's only rat-free region shattered by discovery of rat

https://www.theguardian.com/world/2026/sep/25/alberta-canada-rat-patrol
7•pseudolus•1h ago•1 comments

What Is Math's Mysterious Langlands Program About?

https://www.quantamagazine.org/what-is-maths-mysterious-langlands-program-really-about-20260909/
3•signa11•1h ago•0 comments

Thought on how to deal with AI crawlers

https://copepod.dev/human-required
2•meredithbloom•1h ago•0 comments

Isn't it enough just to disconnect bloatware from internet instead of disabling?

https://f-droid.org/packages/io.github.dorumrr.de1984/
2•tukunjil•1h ago•0 comments

It's a Jev's World

https://www.bolna.ai/blog/testing-jev-on-real-phone-calls
3•xan_ps007•1h ago•0 comments

The Sleazy World of Reddit Marketing, Everything Is Fake

https://larslofgren.com/reddit-marketing/
4•landdate•1h ago•0 comments

AI was supposed to hit new grads hard. So far, unemployment data says otherwise

https://arstechnica.com/ai/2026/09/ai-was-supposed-to-hit-new-grads-hard-so-far-unemployment-data...
5•MrDresden•1h ago•2 comments

About Jammertest

https://www.jammertest.no/about/
3•Tomte•1h ago•0 comments