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?

Redis uses less RAM than you think, nibble measures how much, and applies it

https://github.com/RyanRana/nibble
1•ryanrana•2m ago•0 comments

Anthropic's 'Watermark' Text Adulteration in Claude Is a Perversion of Writing

https://daringfireball.net/2026/08/anthropics_watermark_text_adulteration_in_claude_is_a_perversi...
2•ropbear•5m ago•0 comments

Claude Seems Down

5•zhan_eg•6m ago•1 comments

Failure Takes Years to Admit

https://julienreszka.com/blog/failure-takes-years-to-admit/
2•julienreszka•8m ago•0 comments

Claude Auth Is Down

https://claude.ai/new
17•nabeards•8m ago•2 comments

Nauru, the 3rd-smallest country, changes its name to Naoero

https://abcnews.com/International/wireStory/nauru-worlds-3rd-smallest-country-naoero-135318134
2•gmays•17m ago•0 comments

Winkeys: Windows Keyboard Shortcuts on macOS

https://winkeys.app
1•yashvadaria•17m ago•0 comments

Show HN: One page per betting market – 21 books' odds, every outcome graded

https://prop-line.com/odds-api
1•rquitzo243•18m ago•0 comments

How to build a RAG pipeline with the Go StdLib

https://blog.devgenius.io/stop-stuffing-your-system-prompts-build-a-real-rag-pipeline-in-go-e93bb...
2•cheikhdev•18m ago•0 comments

Wellington second-hand bookstore's mysterious orders

https://www.rnz.co.nz/life/books/wellington-second-hand-book-store-s-mysterious-orders
2•beanaroo•18m ago•0 comments

My Hermes and Obsidian Setup and Use Cases

https://metedata.substack.com/p/013-my-hermes-and-obsidian-set-up
1•young_mete•18m ago•0 comments

Awesome-local-first – A curated list of Local-First Software

https://github.com/zhongkechen/awesome-local-first
2•peter_d_sherman•20m ago•0 comments

Productivity Framework Paraiso

https://ejlabs.io/blog/introduction_paraiso
1•mansi1010•20m ago•2 comments

Three Mile Island Accident

https://en.wikipedia.org/wiki/Three_Mile_Island_accident
2•js2•22m ago•0 comments

Life with Hazard Ratios

https://dynomight.substack.com/p/hazard-ratios
1•paulpauper•23m ago•0 comments

AI #176 Part 2: Plan B

https://thezvi.substack.com/p/ai-176-part-2-plan-b
1•paulpauper•24m ago•0 comments

Why Stripe Just Bought OpenRouter

https://s-1.vercel.app/posts/why-openrouter-can-be-the-next-great/
6•nbcu1985•25m ago•0 comments

The Decline of Deviance 2

https://www.experimental-history.com/p/the-decline-of-deviance-2
1•paulpauper•25m ago•0 comments

Young People Hate AI CEOs So Passionately That It's Almost Hard to Believe

https://futurism.com/artificial-intelligence/young-people-ai-ceos-executives-poll
3•healsdata•25m ago•0 comments

America's Loneliness Trap

https://slate.com/life/2026/08/men-lonely-social-skills-therapy-economy-crisis.html
1•theriddlr•26m ago•0 comments

The 'Fraud Squad' at Caltech Will Catch You If You Lie on Your Application

https://www.wsj.com/us-news/education/college-admissions-caltech-cheating-fraud-squad-f7627aab
1•apparent•27m ago•0 comments

Prediction Firms Are Flagging Insider Traders. Many Will Not Face Charges.

https://www.nytimes.com/2026/08/12/us/politics/prediction-markets-insider-trading.html
2•bookofjoe•30m ago•2 comments

Stop Turning every purchase into a tip request

https://www.foxnews.com/opinion/america-needs-stop-turning-every-purchase-uncomfortable-tip-request
6•gist•30m ago•1 comments

Who needs a dedicated portable music player in 2026?

https://kevinboone.me/pmp.html
2•ingve•31m ago•0 comments

Trump Family World Liberty Financial Gets Preliminary Approval to Launch a Bank

https://www.wsj.com/finance/trump-familys-world-liberty-financial-gets-preliminary-approval-to-la...
2•ourmandave•32m ago•0 comments

OEIS Open: A benchmark of 492 unsolved math conjectures, formalized in Lean

https://arxiv.org/abs/2608.11941
1•tadamcz•32m ago•0 comments

Show HN: VocalCode – push-to-talk dictation for AI coding agents, on-device

https://vocalcode.app/
1•wudmaing00•38m ago•0 comments

A faster way to calculate the day-of-the-week

https://www.benjoffe.com/fast-day-of-week
1•gavide•38m ago•0 comments

Don't blame Claude – It's me, I'm the problem, it's me

https://www.atomic14.com/2026/08/16/its-me-hi-im-the-problem
2•iamflimflam1•42m ago•0 comments

Show HN: GitFC – Turn your GitHub profile into a football card

https://gitfc.vercel.app/
1•Shreyashh15•43m ago•0 comments