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?

Death by a Thousand Small Decisions

https://codebytom.blog/2026/07/death-by-a-thousand-small-decisions/
1•theanonymousone•35s ago•0 comments

Who Owns Commodore? The Retro PC Brand Still Exists, but a Lot Has Changed

https://www.bgr.com/2233625/who-owns-commodore-retro-brand/
1•theanonymousone•58s ago•0 comments

Ryde Data Breach Exposes 4.5M Customer Accounts Across Nordic Region

https://ebuildersecurity.se/en/cyber-news/ryde-data-breach-4-5-million-nordic-accounts-2026/
2•absqueued•1m ago•0 comments

Extreme space weather could disrupt flights, expose passengers to high radiation

https://www.surrey.ac.uk/news/extreme-space-weather-could-disrupt-flights-and-expose-passengers-h...
1•giuliomagnifico•1m ago•0 comments

Solving Hack the Box Challenges with GPT‑5.6

https://theaq.blog/2026/08/17/solving-htb-challenges-with-openai-gpt-5.6.html
2•HonzaT•2m ago•0 comments

'Can we accept what we have done or not done?'

https://www.theguardian.com/film/2026/aug/17/gaza-doctor-documentary
1•root-parent•3m ago•0 comments

And then the men with guns tell you to do it anyway

https://shkspr.mobi/blog/2026/08/and-then-the-men-with-guns-tell-you-to-do-it-anyway/
1•ColinWright•5m ago•0 comments

AI Has Plunged the Book Publishing Industry into Utter Chaos

https://www.wsj.com/arts-culture/books/generative-ai-book-publishing-be79a287
2•thm•6m ago•0 comments

We built AI accelerators to reduce the time from AI prototype to production

https://geekyants.com/ai-accelerator
1•Harish_0089•7m ago•0 comments

People are worried about America's solvency

https://www.ft.com/content/e04f286c-f5ed-46d1-8e3f-0bbe4cce4d3e
2•root-parent•11m ago•1 comments

UK Shared Rural Network roll-out passes key target

https://www.computerweekly.com/news/366648774/UK-Shared-Rural-Network-roll-out-passes-key-target
1•beardyw•13m ago•1 comments

RSS/Atom Feeds Are Critical

https://fyr.io/post/feeds-are-critical
1•ajdude•14m ago•0 comments

Vetted AI code is hard to justify

https://amoffat.github.io/blog/vetting-burnout.html
1•mpweiher•19m ago•0 comments

Ask HN: €300/mo to capture work you're doing. Tips how to reach right people?

1•Salanx•19m ago•0 comments

Trump Threatens to Bomb Oman

https://www.ft.com/content/d4d07198-498d-48d1-9e54-85f1febcd070
3•root-parent•21m ago•0 comments

The Wrong Kind of American

https://www.theatlantic.com/magazine/2026/10/trump-white-house-transgender-mike-pence/688284/
1•Anon84•23m ago•0 comments

Show HN: Logofolio: fresh logo design, daily

https://logofolio.com
1•not_wowinter14•25m ago•0 comments

Why Stripe's $7B OpenRouter Acquisition Is About Owning the AI Routing Layer

https://medium.com/@glennlenormand/stripe-didnt-pay-7-billion-for-openrouter-it-bought-the-tollbo...
3•glennall•30m ago•0 comments

Bruce Schneier: AI Will Hack More Than Computers [video]

https://www.youtube.com/watch?v=YuwL8us4aq4
3•binyu•32m ago•0 comments

A Dual View on Syntax

https://text.marvinborner.de/2026-08-11-17.html
2•marvinborner•39m ago•0 comments

Rewrite every word will remove the Claude's watermark

https://techcrunch.com/2026/08/15/anthropic-shares-more-details-about-how-claudes-new-watermarks-...
2•deepmem•41m ago•0 comments

The G.L.O.V.E. – CD3 Compliance Tool

https://www.complianttechnologies.net/the-glove
2•ndsipa_pomu•42m ago•1 comments

How a Knowledge Graph Made Haiku as Accurate as Fable 5 [video]

https://www.youtube.com/watch?v=svvlT-nX6N8
3•brainless•43m ago•0 comments

When good therapy advice makes things worse

https://www.pasthepast.com/p/when-good-therapy-advice-makes-things
1•ElysiumAbove•45m ago•1 comments

What the OpenAI/Hugging Face Hack Tells Us About AI Danger

https://www.bloomberg.com/news/videos/2026-08-17/what-the-openai-hugging-face-hack-shows-about-ai...
1•sbulaev•49m ago•0 comments

Show HN: Find images by what they show, AI-rename them, and sort them easily

https://apps.microsoft.com/detail/9mt89hd9s6sm?hl=en-US&gl=US
2•ringlochid•50m ago•0 comments

Ask HN: Which plugins or extensions do you most enjoy using with the Pi agent?

1•phiagent•51m ago•2 comments

AutoDesign: Meta-Harness Optimization for Long-Horizon Agentic Design

https://arxiv.org/abs/2608.13560
1•ninadwrites•52m ago•0 comments

Execution-Finality Governance for Europe's Emerging Space-Regulatory Framework

https://zenodo.org/records/21934268
1•sangamdas1982•52m ago•0 comments

How much hydrogen awaits us underground?

https://www.technologyreview.com/2026/08/17/1141560/how-much-hydrogen-awaits-underground/
2•joozio•54m ago•0 comments