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?

NHS patients can't opt out of Palantir's data platform – but their hospital can

https://www.theregister.com/databases/2026/06/13/nhs-patients-cant-opt-out-of-palantirs-data-plat...
1•Bender•15s ago•0 comments

Federal Network Agency vs. Steam: Investigation into "Plantation Simulator"

https://www.heise.de/en/news/Federal-Network-Agency-vs-Steam-Investigation-into-Plantation-Simula...
1•mschuster91•54s ago•0 comments

The Minecraft community so nostalgia blinded

1•letlearnbasic•1m ago•0 comments

How to Become an AI-Native Software Engineer? What an AI-Native Team Looks Like

https://medium.com/vibecodingpub/how-to-become-an-ai-native-software-engineer-8f4bda05e7dc
1•SaeedZF•2m ago•0 comments

Why pushback is growing against New Jersey's crazy e-bike law

https://electrek.co/2026/06/13/why-pushback-is-growing-against-new-jerseys-crazy-e-bike-law/
1•Bender•2m ago•0 comments

Vibe Coder vs. Software Engineer

https://yusufaytas.com/vibe-coder-vs-software-engineer
5•yusufaytas•2m ago•0 comments

Why can't I type and scroll at the same time?

https://scrollpods.app/blog/why-cant-i-type-and-scroll-at-the-same-time
1•tippa123•2m ago•0 comments

Researchers uncovering ADHD links to other health conditions

https://www.washingtonpost.com/wellness/2026/06/14/adhd-is-linked-chronic-pain-other-health-condi...
1•bookofjoe•5m ago•1 comments

Commanded, Meet EventSourcingDB

https://docs.eventsourcingdb.io/blog/2026/06/15/commanded-meet-eventsourcingdb/
1•goloroden•5m ago•0 comments

The Leading Deepfake Expert No Longer Trusts His Own Eyes

https://www.nytimes.com/2026/06/14/us/ai-deepfake-hany-farid.html
1•nhyun•7m ago•0 comments

How Are You Feelin.today?

https://feelin.today/
2•michalwarda•8m ago•1 comments

Show HN: Ray Hosting – Topology-aware game server orchestrator made from scratch

https://ray-hosting.com/en-US
2•bardhyliis•11m ago•0 comments

Why All the PRs?

https://idiallo.com/blog/why-all-the-prs
1•firefoxd•12m ago•0 comments

Bring Siri AI to EU iPhone Users Safely

https://siri4eu.com
4•peterspath•15m ago•0 comments

The Fertile Void

https://d.glezos.com/the-fertile-void/
1•gtzi•17m ago•0 comments

Companies are scrambling to curtail soaring AI costs

https://www.economist.com/business/2026/06/14/companies-are-scrambling-to-curtail-soaring-ai-costs
1•andsoitis•18m ago•0 comments

UK to announce Australia-style social media ban for teenagers

https://www.ft.com/content/e3b7be6f-99e7-42d2-a3bb-e400690c7bc0
1•mmarian•18m ago•1 comments

The Aeneid by Virgil (19B.C.E)

https://classics.mit.edu/Virgil/aeneid.html
1•andsoitis•20m ago•0 comments

Show HN: Pg-status – lightweight HTTP sidecar for PG master/replica discovery

https://github.com/krylosov-aa/pg-status
2•krylosov-aa•20m ago•0 comments

Claude Code Is Dead

https://claude-code-is-dead.vercel.app/
2•gidellav•21m ago•0 comments

Webxdc – Secure mini apps for chats

https://webxdc.org/
1•birdculture•27m ago•0 comments

Paul Krugman breaks down problems with SpaceX valuation [video]

https://www.youtube.com/watch?v=jqjcOs-N6a8
3•jethronethro•28m ago•0 comments

Is Musk the richest American ever now? No, except as a consumer

1•dfps•29m ago•0 comments

CoreAI_HTCE

https://github.com/miroaleksej/CoreAI_HTCE
1•CoreAi_HTCE•31m ago•0 comments

From AGI to ASI

https://arxiv.org/abs/2606.12683
1•artninja1988•34m ago•0 comments

Pilot and 11 skydiving passengers killed in Missouri plane crash

https://www.theguardian.com/us-news/2026/jun/14/butler-missouri-plane-crash
2•sva_•39m ago•0 comments

How to Build a Phyle

https://lasindias.net/indianopedia/How_to_build_a_phyle
1•rwl•40m ago•0 comments

What does high effort mean when AI has made everything low effort?

2•foxtrot8672•41m ago•2 comments

I built a free tool that tells you if an LLM will run on your GPU

https://www.slopesome.com
1•NexAIGuy•41m ago•0 comments

Leave It to Beaver: Everything is bigger at Buc-ee's

https://thebaffler.com/outbursts/leave-it-to-beaver-wilder
1•NaOH•46m ago•0 comments