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?

As the Tide Turns Against Putin, Beware the Drowning Man

https://foreignpolicy.com/2026/06/25/russia-ukraine-war-putin-escalation-nato-europe/
1•baxtr•32s ago•0 comments

Europe heatwave halts Leipzig trams as soaring temperatures damage tracks

https://www.firstpost.com/world/europe-heatwave-halts-leipzig-trams-as-extreme-heat-damages-track...
1•no_news_is•42s ago•1 comments

Farming is Why Humanity is Fucked

https://brennan.day/farming-is-why-humanity-is-fucked/
1•surprisetalk•2m ago•0 comments

Ask HN: Has open source become the best business model?

1•adithyaharish•5m ago•0 comments

We Reduced Development Time by 50%, Users Didn't Notice

1•Semi_hayat•5m ago•0 comments

The Secret Life of Computers – The Chip Letter

https://thechipletter.substack.com/p/the-secret-life-of-computers
1•rbanffy•5m ago•0 comments

NASA races to save Swift telescope

https://www.latimes.com/world-nation/story/2026-06-28/nasa-races-to-save-swift-telescope-with-dar...
1•mrhappyhappy•6m ago•0 comments

Cognitive Bias

https://en.wikipedia.org/wiki/Cognitive_bias
1•abixb•6m ago•0 comments

SQL Alerting in Cloud Monitoring Observability

https://cloud.google.com/blog/products/management-tools/alert-with-sql-in-cloud-monitoring-observ...
1•mjs06•8m ago•0 comments

The Humanoid That Runs Until Someone Steps In

https://atomsfrontier.substack.com/p/the-humanoid-that-runs-until-someone
2•jpatel3•8m ago•0 comments

ePulz.io

https://epulz.io/
3•tiptech•11m ago•0 comments

Making a Meal of the Family Meal: Cooking Dinner [audio]

https://abundance.institute/our-work/everyday-abundance-making-a-meal-of-the-family-meal-cooking-...
1•mooreds•12m ago•0 comments

A Beginner's Guide to Reopening the Strait (Of Hormuz)

https://www.commoditycontext.com/p/a-beginners-guide-to-reopening-the-strait
1•mooreds•12m ago•0 comments

AI-Enhanced Writing

https://enocc.com/blog/2026-04-09-on-ai-enhanced-writing.html
1•speckx•12m ago•0 comments

Pizza wheels are bad, Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•mooreds•13m ago•0 comments

Ask HN: AI robbed my joy of reading books?

3•hasudon7171•16m ago•3 comments

Search, Discovery, Pills, and Portals

https://contraptions.venkateshrao.com/p/search-discovery-pills-and-portals
1•surprisetalk•16m ago•0 comments

Route Phone Calls to an AI Agent with the Telnyx Voice API

https://telnyx.com/resources/route-phone-calls-ai-agent
1•harpreetseehra•17m ago•0 comments

Dragon's Egg: a formally verified, distributed object-capability OS

https://github.com/emberian/dregg
1•iamthebesthere•17m ago•0 comments

Ask HN: Building a minimal to-do app based on Signal vs. Noise

1•simonhansson•18m ago•0 comments

Migratrom: Schema migrations you can trust your agent to write

https://migratrom.org/
1•alloysmila•20m ago•0 comments

Rocket Lab Buys Satellite Operator Iridium in Bid to Challenge SpaceX

https://www.wsj.com/business/telecom/rocket-lab-buys-satellite-operator-iridium-in-bid-to-challen...
2•JumpCrisscross•21m ago•0 comments

Tesla FSD v14 Lite

https://twitter.com/elonmusk/status/2071538306039357838
1•lucamark•23m ago•0 comments

Has anyone here used the AI trading bot "Zentriq"? Looking for honest feedback

https://qafstudio.gumroad.com/l/zentriq
1•klegolas•24m ago•0 comments

Turning Risk Appetite into Impact – By Eric Gilliam

https://www.freaktakes.com/p/turning-risk-appetite-into-impact
1•rbanffy•25m ago•0 comments

Anatomy of an Agent – By Stephen Gruppetta

https://www.thepythoncodingstack.com/p/2-anatomy-of-an-agent
1•rbanffy•26m ago•0 comments

CRISPR's next act: the companies editing the epigenome to treat disease

https://www.nature.com/articles/d41586-026-01976-w
1•bookofjoe•27m ago•1 comments

Fame, an external memory and tool-safety gateway for local coding agents

https://github.com/superalp1985/fame-knowledge-agent-gateway
1•superalp•27m ago•0 comments

The Science of Play

https://www.unicef.org/parenting/child-care/science-of-play
1•the-mitr•27m ago•1 comments

Comcast Plans Company Split, Sending Shares Soaring 20%

https://www.wsj.com/business/media/comcast-to-split-media-and-tech-businesses-into-two-separate-c...
1•JumpCrisscross•27m ago•0 comments