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?

Some Scientists Have 'Magic Hands' in the Lab. This A.I. Is Learning Why.

https://www.nytimes.com/2026/08/27/science/scientists-experiments-replication-ai.html
1•mitchbob•45s ago•1 comments

What It Took to Dismantle the Most Powerful Company in the World

https://www.nytimes.com/2026/08/28/opinion/ai-power-lobbying-military-britain-east-india-company....
1•Anon84•3m ago•0 comments

Atlantropa

https://en.wikipedia.org/wiki/Atlantropa
1•yitchelle•5m ago•0 comments

Iceland votes 'No' to reopening EU accession talks

https://www.euronews.com/my-europe/2026/08/30/iceland-votes-no-to-further-eu-accession-talks-in-t...
1•sehw•7m ago•0 comments

Rehearse a specific English work conversation before you have it

https://www.unfreezy.com
1•czaar1•7m ago•0 comments

Groom of the Stool

https://en.wikipedia.org/wiki/Groom_of_the_Stool
1•soupspaces•8m ago•0 comments

IguanaTex

https://github.com/Jonathan-LeRoux/IguanaTex
1•Eridanus2•8m ago•0 comments

Innovation Doesn't Happen on Schedule

https://www.thesignalist.io/s/innovation-doesnt-happen-on-schedule/
1•kodesko•9m ago•0 comments

The largest electric plane takes flight today

https://www.popsci.com/technology/worlds-largest-electric-plane/
1•thinkingemote•10m ago•0 comments

Scientists Create the Littlest Big Bang to Study the Universe's Origins

https://www.wired.com/story/scientists-create-littlest-big-bang-to-study-universe-origins/
1•joozio•10m ago•0 comments

When Led Zeppelin bombed in front of 1.9B people [video]

https://www.youtube.com/watch?v=PPJJdQfVxyg
1•jurf•11m ago•0 comments

Show HN: The Thousand – 1k founders, 1 question, one book

https://thethousand.co
1•jabed•11m ago•1 comments

Google Maps – Lake America

https://www.google.com/maps/place/Lake+America/@43.7036865,-79.2490163,8z/data=!3m1!4b1!4m6!3m5!1...
1•pseudolus•12m ago•0 comments

Columbia House Is Shutting Down

https://pitchfork.com/story/columbia-house-is-shutting-down/
1•pseudolus•19m ago•0 comments

He Did Not Conquer: Franklin's Failure to Annex Canada

https://reviewcanada.ca/magazine/2025/12/how-vain-an-attempt-review-he-did-not-conquer/
2•Bluestein•21m ago•0 comments

Show HN: Get your free AI search visibility scan

https://www.visiscan.app
1•not_wowinter14•21m ago•0 comments

Tortoise and the Birds – an African folktale recreated with Lego animation [video]

https://www.youtube.com/watch?v=EVHlqLa7-u0
1•CodePapi_•24m ago•1 comments

Show HN: Nuzzle – adorable live wallpapers of your pets

https://usenuzzle.com
1•13001r•25m ago•0 comments

Against Dumb Vibe Coding, Not Vibe Coding

https://funnygeek.com/essays/vibe-coding-speech/
1•ifoo•26m ago•1 comments

Show HN: Drop a SQL schema, get an interactive ER diagram

https://mcdview.dev/
1•PatuDev•26m ago•0 comments

Mitchell Hashimoto: Basic Superlogical Demo

https://twitter.com/mitchellh/status/2093451043661316217
2•mdrachuk•29m ago•0 comments

The U.S. Munitions Crisis

https://www.cfr.org/articles/the-u-s-munitions-crisis
2•Betelbuddy•29m ago•1 comments

Show HN: Time tracking for solo consultants that ends in a PDF invoice

https://hourtobill.com/demo
1•Stackedboost•30m ago•0 comments

Tja – TUI for learning German verbs in your terminal, one-armed-bandit style

https://github.com/progapandist/tja
1•progapandist•31m ago•1 comments

US Threatens Britain over Falklands

https://www.telegraph.co.uk/world-news/2026/08/28/us-uk-boost-defence-spending-lose-falklands-sup...
1•Betelbuddy•33m ago•1 comments

Iceland votes against restarting talks on joining EU

https://www.bbc.com/news/articles/c70le8ed1plo
2•vinni2•33m ago•0 comments

Show HN: Train 300M/32-Layer Model in 1.5GB RAM on Base M1 Mac

1•vlad_kalinkin•34m ago•0 comments

Only believe what you can validate: a verification framework for agentic AI

https://devblogs.microsoft.com/all-things-azure/only-believe-what-you-can-validate/
2•yani__•35m ago•0 comments

Delhi Metro Jazz

https://www.delhimetrojazz.com/
1•mscholz•37m ago•0 comments

Veldo: Stop paying for App Store keywords that never pay back

https://veldo.app/
1•welsenesbros•40m ago•0 comments