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?

Evaluating sugar-sweetened beverage tax effects

https://pmc.ncbi.nlm.nih.gov/articles/PMC12669988/
1•luu•2m ago•0 comments

I Canceled My French Tutor and Built an LLM Tool That Does It Better

https://alshe.substack.com/p/i-canceled-my-french-tutor-and-built
1•Anon84•3m ago•0 comments

PebbleOS

https://github.com/coredevices/PebbleOS
1•arbayi•4m ago•0 comments

Robust Jobserver

https://codeberg.org/mlugg/robust-jobserver/src/branch/main/spec.md
1•birdculture•6m ago•0 comments

The Deadly Rise of Giant Trucks and S.U.V.s

https://www.nytimes.com/interactive/2026/06/21/us/trucks-suv-pedestrian-crashes.html
1•xnx•7m ago•0 comments

Migrating from Claude to DeepSeek without breaking everything

https://blog.firetiger.com/migrating-from-claude-to-deepseek-without-breaking-everything/
1•eric_khun•8m ago•0 comments

Compass – guardrails and a hard budget cap for AI coding agents

https://github.com/dshakes/compass
1•chandu1221•11m ago•0 comments

The Crusade of Hormuz

https://www.historytoday.com/archive/history-matters/crusade-hormuz
1•Thevet•16m ago•0 comments

Real-Time GPS Tracking Station

https://www.gps-satellites.com/
1•gnabgib•19m ago•0 comments

Show HN: Fold-logging.nvim – fold logging and debug-print statements in Neovim

https://github.com/markosnarinian/fold-logging.nvim
1•markosn•19m ago•0 comments

Swift, Gay and Pope's season in the sun

https://www.theguardian.com/books/2026/jun/12/the-twitnam-summer-by-hester-grant-review-swift-gay...
1•Petiver•28m ago•0 comments

I just released Mango Launcher

https://www.mangolauncher.com/
2•PinyaApps•29m ago•0 comments

Street Traffic Regulation (1909)

https://rosap.ntl.bts.gov/view/dot/16295
1•willmeyers•31m ago•1 comments

I Gave an AI a Civilization to Run. It Built a Nuke – Launching CivBench

https://www.lwilko.com/blog/i-gave-an-ai-a-civilization
3•LiamWilko•33m ago•2 comments

AI Is Discovering the Doorman Fallacy [video]

https://www.youtube.com/watch?v=f-QzIum9bNU
1•CHB0403085482•35m ago•1 comments

Show HN: Tunr – Expose your local server in 3 seconds

https://github.com/ahmetvural79/tunr
2•ahvural•35m ago•0 comments

Improvements to Std:Format in C++26

https://mariusbancila.ro/blog/2026/06/19/improvements-to-stdformat-in-c26/
1•rbanffy•42m ago•0 comments

Show HN: Bifrost Edge: runs on PC of ur organization and routes all AI traffic

https://docs.getbifrost.ai/edge/overview
2•aanthonymax•44m ago•1 comments

Daily Probiotic May Help Fight Depression in Older Adults

https://scitechdaily.com/scientists-say-a-daily-probiotic-may-help-fight-depression-in-older-adults/
1•Gaishan•45m ago•0 comments

Pixi: Fast, modern, and reproducible package management tool

http://pixi.prefix.dev/latest/
1•__rito__•46m ago•0 comments

Show HN: EGC - MCP server that gives AI coding tools memory across sessions

https://github.com/Fmarzochi/EGC
1•fmarzochi•48m ago•0 comments

PostGIS pull requests just a bunch of AI bots

https://en.osm.town/@zverik/116787982770421751
2•aendruk•49m ago•0 comments

Rent collections are down in New York – and no one's sure why

https://www.politico.com/news/2026/06/21/rent-collections-are-down-in-new-york-and-no-ones-sure-w...
16•JumpCrisscross•55m ago•7 comments

We just shipped something I don't think exists anywhere else in this space

https://www.moodlenstodo.info/
3•MoodlensTodo•55m ago•0 comments

A Small Fintech Challenge, and Why I Let Postgres Hold the Money

https://e-mahmoudi.me/blog/a-small-fintech-challenge-and-why-i-let-postgres-hold-the-money/
2•jeyem•56m ago•0 comments

W: Europe's alternative to mainstream social media

https://www.euronews.com/next/2026/06/19/w-thinks-it-has-the-x-factor-everything-to-know-about-eu...
2•vinni2•57m ago•0 comments

The notebooks Marie Curie filled with her research are still dangerous to touch

https://spacedaily.com/t-the-notebooks-marie-curie-used-in-her-research-remain-radioactively-cont...
5•binyu•1h ago•2 comments

Did my old job only exist because of fraud?

https://david.newgas.net/did-my-old-job-only-exist-because-of-fraud/
40•advisedwang•1h ago•4 comments

Jonathan Blow on why LLMs cannot program [video]

https://www.youtube.com/watch?v=DdjUDpU-as0
8•andy99•1h ago•2 comments

The anatomy of an AI-native org

https://ajeygore.in/content/the-anatomy-of-an-ai-native-org
32•kiyanwang•1h ago•35 comments