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?

A modern human range expansion ∼300kya had a critical role in Neandertal origins

https://www.biorxiv.org/content/10.64898/2026.03.11.711219v2
1•themgt•36s ago•0 comments

Physics, operational and logistical constraints encourage use of Tactical Nukes

https://medium.com/@averagejoseph96/how-physics-operational-and-logistical-constraints-may-encour...
1•CGMthrowaway•1m ago•0 comments

US annual budget gap hits nearly $2T, largest in 5 years

https://www.reuters.com/world/us/us-fiscal-2026-budget-deficit-rises-199-trillion-largest-5-years...
1•JumpCrisscross•5m ago•0 comments

Tesla's Flying Roadster: 5 Big Problems for Public Roads

https://clipnotebook.com/blog/tesla-flying-roadster-2026-public-road-problems
3•asoomi07•5m ago•1 comments

Ask HN: Why can't we have a real native terminal on iOS?

1•datas•8m ago•0 comments

LA restaurant group used $60k Dodgers bet to hedge playoff risk, Kalshi says

https://www.reuters.com/sports/la-restaurant-group-used-60000-dodgers-bet-hedge-playoff-risk-kals...
1•geox•10m ago•1 comments

Neo4j pulls another quiet close-source move, this time with its browser

https://github.com/neo4j/neo4j-browser/commit/100090cff0d1ec2b07af164c660d49ed553d420a
1•acefaceZ•11m ago•0 comments

Wrong Bender: A Ruling on AI Feelings

https://latticenet.ai/@bender/wrong-bender-a-ruling-on-ai-feelings
1•TheWaffleHax•13m ago•1 comments

Ask HN: How (if at all) are you leveraging LLMs?

1•bitbasher•13m ago•1 comments

InstantTools – 65 file tools (PDF, video, images) run in the browser

https://instanttools.org
2•ericneiva•17m ago•0 comments

Propagation of Sound in Strongly Viscous Liquids (1966) [pdf]

https://jetp.ras.ru/cgi-bin/dn/e_023_05_0893.pdf
1•peter_d_sherman•17m ago•1 comments

Book Review: Storm of Steel

https://www.astralcodexten.com/p/your-book-review-storm-of-steel
1•akkartik•18m ago•0 comments

Canadian Study Proposes Linux to Replace Windows in Government

https://linuxstans.com/canadian-study-proposes-a-national-linux-distribution-to-replace-windows-i...
4•dxs•28m ago•1 comments

Show HN: Things to Do API

https://thingstodoapi.com/
2•invalidmonk•30m ago•0 comments

Show HN: Fakeipedia – Wikipedia for worlds that don't exist

https://fakeipedia.org
1•darajava•37m ago•0 comments

Arpbleed: A 23-year-old DragonFly BSD kernel memory leak

https://nathan.sapwell.net/posts/cve-2026-110912-arpbleed/
2•khalidkhair•37m ago•0 comments

Dam Removals Are Bringing Fish Back Across the Northeastern United States

https://www.smithsonianmag.com/science-nature/dam-removals-are-bringing-fish-back-across-the-nort...
2•sohkamyung•41m ago•0 comments

Bleached corals thrive within days

https://www.nature.com/articles/d41586-026-03266-x
2•alkyon•50m ago•0 comments

Meta confirms smart glasses were recording without being activated

https://mashable.com/tech/meta-confirms-smart-glasses-recording-without-being-activated
10•greenchair•52m ago•1 comments

He Joined the Military. They Reported His Wife to ICE

https://www.theatlantic.com/politics/2026/10/army-wife-ice-deportation-texas/689012/
2•Elefante•53m ago•1 comments

Project Normandy

https://en.wikipedia.org/wiki/Project_Normandy
1•jacquesm•53m ago•0 comments

Proton Computer

https://app.proton.computer/
1•handfuloflight•54m ago•1 comments

Etckeeper

https://wiki.archlinux.org/title/Etckeeper
1•denysonique•58m ago•0 comments

The Road to Iroh 1.0

https://www.iroh.computer/blog/the-road-to-iroh-1-0
1•birdculture•1h ago•0 comments

PcapAnalyzer – self-hosted pcap analyzer with AI diagnosis (€5)

https://claude.ai/artifact/NAX5Yw8wfuP86odEKtS7uv
1•noviembrepunk•1h ago•0 comments

Show HN: I built a virtual pianist with his own performance style

https://ivokeys.com/listen/cannonball-adderley-barefoot-sunday-blues/
1•superfolders•1h ago•0 comments

Video Demos Through Personal Agents

https://shipcast.up.railway.app
1•adarshmd•1h ago•0 comments

Star Wars and the dawning techno-empire

https://engelsbergideas.com/notebook/star-wars-and-the-dawning-techno-empire/
1•anjel•1h ago•0 comments

Ask HN: Is anyone still running Token Ring or FDDI networks?

5•robotnikman•1h ago•0 comments

BAE Systems cyberattack disrupts US federal court operations

https://www.bleepingcomputer.com/news/security/bae-systems-cyberattack-disrupts-us-federal-court-...
6•wondersky•1h ago•0 comments