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?

Check any website up/down Status?

https://urlwatch.io/
1•rajkverma123•2m ago•0 comments

The mathematical secrets of Barcelona's Sagrada Familia

https://mappingignorance.org/2026/06/30/sagrada-familia/
1•Gedxx•5m ago•0 comments

EU Parliament temporarily defies Chat Control

https://www.heise.de/en/news/Partial-victory-with-a-catch-EU-Parliament-temporarily-defies-chat-c...
2•donpott•6m ago•0 comments

SmrtLnks – Cheaper Bitly link shortener that routes by GEO, dynamic QR included

https://smrtlink.link/
1•ExcellentNobody•6m ago•0 comments

India asks WhatsApp to pause username feature rollout over fraud concerns

https://www.bbc.com/news/articles/ckg8e0n9l41o
1•Markoff•8m ago•0 comments

JPEG-XL Libjxl 0.12 Brings More Performance Optimizations

https://www.phoronix.com/news/JPEG-XL-libjxl-0.12
2•blurred•11m ago•0 comments

Multiple Linux tarballs return 404 on kernel.org

https://kernel.org/
1•Lwrless•16m ago•0 comments

Alibaba to ban Claude Code in workplace over alleged backdoor risks, source says

https://www.reuters.com/world/china/alibaba-ban-claude-code-workplace-over-alleged-backdoor-risks...
5•nsoonhui•17m ago•1 comments

Half-Baked Product

https://weli.dev/blog/half-baked-product/
2•weli•25m ago•1 comments

How eveRy webSite is tRacking you 24/7. SiTe STaMpS

https://medium.com/@thesuperrepemail/how-every-website-is-tracking-you-24-7-site-stamps-333e8026eaba
1•mssblogs•25m ago•0 comments

Giotto.ai: "A Swiss lab with European heart"

https://www.giotto.ai/#about
1•theanonymousone•26m ago•0 comments

ECTC 2026 Roundup, Intel, TSMC, SK Hynix, Samsung, Micron, Marvell, Lightmatter

https://newsletter.semianalysis.com/p/ectc2026
1•felixdoerp•27m ago•0 comments

Nobody Reads the SQL Anymore

https://tabularis.dev/blog/nobody-reads-the-sql-anymore
1•debba•27m ago•1 comments

'guix substitute' and 'guix pull' Vulnerabilities

https://guix.gnu.org/en/blog/2026/guix-substitute-pull-vulnerabilities/
1•elephant-ocean•28m ago•0 comments

I replaced my GitHub runners with Lambda MicroVMs, and maybe you should too

https://lucvandonkersgoed.com/2026/07/01/i-replaced-my-github-runners-with-lambda-microvms-and-ma...
1•touristtam•30m ago•1 comments

NVCF: Deploy and Route GPU-Accelerated AI Workloads at Scale

https://github.com/NVIDIA/nvcf
1•mastabadtomm•30m ago•0 comments

Amazon's Mechanical Turk to stop accepting new customers

https://www.theregister.com/off-prem/2026/07/03/amazons-mechanical-turk-to-stop-accepting-new-cus...
7•50kIters•35m ago•0 comments

Action Preflight: consequence-aware admission for LLM agent actions

https://github.com/gfernandf/agent-skills/blob/main/docs/ACTION_PREFLIGHT_FORECAST_QUICKSTART.md
1•gfernandf1•37m ago•2 comments

Exploring Nix for Enterprise Teams

https://medium.com/ekino-france/exploring-nix-for-enterprise-teams-2e61d755e473
1•tduyng•37m ago•0 comments

Global gridded population datasets underrepresent rural population (2025)

https://www.nature.com/articles/s41467-025-56906-7
2•bryanrasmussen•42m ago•1 comments

The Law of Leaky Abstractions (2002)

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
1•SmartHypercube•43m ago•0 comments

What Happened to the Fight for the Internet?

https://dustycloud.org/blog/what-happened-to-the-fight-for-the-internet/
1•birdculture•44m ago•1 comments

Show HN: TTS Model – Another attempt to cross the uncanny valley

https://theclevr.com
1•cyrus_ck•49m ago•0 comments

We sell digital assets built on AI-powered business models

https://digitvest.com/en
1•kilincarslan•50m ago•0 comments

Naval: Code is consumed by computers, writing by humans. So write it yourself

https://www.ssp.sh/brain/the-differences-between-writing-and-coding/
2•zazuke•53m ago•0 comments

Editorial: It's time to step up and have your say for science

https://arstechnica.com/science/2026/07/editorial-the-most-important-thing-you-can-do-to-protect-...
2•rbanffy•53m ago•1 comments

Argo Mission 1

https://www.argospace.com//news/argo-mission-1
1•da-x•54m ago•0 comments

'Vanishingly rare' copy of US Declaration of Independence found in UK archives

https://www.theguardian.com/uk-news/2026/jul/03/vanishingly-rare-copy-us-declaration-independence...
2•6LLvveMx2koXfwn•55m ago•0 comments

DConf '26 Schedule

https://dconf.org/2026/index.html#schedule
1•pjmlp•55m ago•0 comments

Capped Fable turns capability into budgeting problem

https://spark.temrel.com/p/fable-5-rationed
1•bentemrel•1h ago•0 comments