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?

How the world wiped out smallpox for under two billion dollars

https://worksinprogress.co/issue/how-the-world-wiped-out-smallpox/
1•ogundipeore•3m ago•0 comments

Chicago's Metra Prepares for Battery-Powered Trains

https://spectrum.ieee.org/chicago-metra-train-battery-electric
1•sohkamyung•3m ago•0 comments

Jensen Huang accused of having 'sold out' US during tense Senate hearing

https://www.theguardian.com/technology/2026/dec/03/jensen-huang-testimony-nvidia-china
3•extasetoi12•7m ago•0 comments

Am I a developer or just a good Googler? (2013)

https://www.hanselman.com/blog/am-i-really-a-developer-or-just-a-good-googler
1•bariumbitmap•10m ago•1 comments

Show HN: Strudel in Tracker Like Interface

https://strack.fm/
1•kodisha•13m ago•0 comments

One More Tidbit of Discouraging Evidence on Universal Basic Income

https://conversableeconomist.com/
1•marc__1•13m ago•0 comments

The Moat Is Moot

https://www.habibicode.org/articles/moat-is-moot
1•ByteAtATime•16m ago•0 comments

Enough RoPE

https://ianbarber.blog/2026/12/02/enough-rope/
1•matt_d•21m ago•0 comments

Stanford Lecture: Dr. Don Knuth – Claude and the Art of Computer Programming

https://www.youtube.com/watch?v=-1AajkwngqM
2•froh•22m ago•1 comments

0-dep REST API and MCP unifying Polymarket, Kalshi and Manifold live odds

https://github.com/matiascorrea2024-star/prediction-markets-intelligence-api
1•matiascorrea202•28m ago•0 comments

Ask HN: Novel Cryptography

1•Taek•28m ago•0 comments

What is Hyperbaroque, the 'AI slop' trend that might be art?

https://www.creativebloq.com/news/what-is-hyperbaroque-the-ai-slop-trend-that-might-actually-be-art
1•tart-lemonade•29m ago•1 comments

Vphone-iCloud: adding iCloud services to vphone-CLI

https://github.com/GiordanoSconti/vphone-icloud
1•D34dL0ck9327•30m ago•0 comments

HTML is dead: Markdown is the new Markup

https://disassociated.com/html-dead-markdown-new-markup/
2•jyhrow•30m ago•1 comments

Musk admits Tesla's first Cybercab sales are partly to win MKBHD bet

https://electrek.co/2026/12/03/musk-tesla-cybercab-sales-mkbhd-bet-shareholder-meeting/
1•toomuchtodo•31m ago•0 comments

Covid: Something different seems to be happening this year

https://twitter.com/1goodtern/status/2128235567855157514
2•doener•33m ago•0 comments

The Moment When Jensen Huang Lost His Cool

https://www.nytimes.com/2026/12/03/opinion/jensen-huang-nvidia-testimony-hearing.html
1•doener•36m ago•0 comments

People are reading too much into the gov advisories and listening to conjecture

https://twitter.com/RGB_Lights/status/2128484066400047581
1•espeed•38m ago•0 comments

NSA Asks AI Labs to Please Stop Trying to Break Cryptography

https://gizmodo.com/nsa-asks-ai-labs-to-please-stop-trying-to-break-cryptography-2000848817
3•DGAP•41m ago•2 comments

Skydance prepares for layoffs after Warner Bros. merger

https://www.msn.com/en-us/money/general/skydance-prepares-for-massive-layoffs-after-warner-bros-m...
1•petethomas•42m ago•0 comments

Ford issues recall after exhaust leaks kill two

https://arstechnica.com/cars/2026/12/ford-recalls-704000-light-trucks-after-two-deaths-from-carbo...
1•bookmtn•44m ago•0 comments

Jeff Bezos Is Giving Away His AI for Free. Here's Why [video]

https://www.youtube.com/watch?v=e9w-cutHG4c
2•Bender•46m ago•2 comments

eBPFOS: Compile Linux into eBPF and make it a dynamically composable OS

https://github.com/eunomia-bpf/ebpfos
2•matt_d•46m ago•0 comments

LUI – Make Native Apps in Linux and Windows with Roblox Luau

https://github.com/gmoddev/LUI/releases
1•LUIDeveloper•48m ago•0 comments

Show HN: Lurka, open-source tool to find buyers among people engaging on X

https://github.com/getcargohq/lurka
2•auree•49m ago•0 comments

Samenland: Multiplayer settlement game set in Northern Germany around 1500 (MIT)

https://github.com/retrogames23/samenland
2•doener•50m ago•0 comments

Mapping a Hospital Desert in the US using R

https://datascienceplus.com/mapping-a-hospital-desert-in-r/
2•kkk4seis•50m ago•0 comments

GitHub: Incident with Actions

https://www.githubstatus.com/incidents/v78mpshn6902
2•bygosh•51m ago•0 comments

Ask HN: Any Update from Google and Microsoft on PQC?

2•jono_wilson•53m ago•0 comments

Certificate Transparency Search: All CT Logs, Free JSON API

https://ctlogs.dev/
6•sea-gold•53m ago•0 comments