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?

What Makes American Architecture American?

https://www.thenation.com/article/culture/american-architecture-sprawl-suburbs-postmodernism/
2•tintinnabula•6m ago•0 comments

Agent swarms are great for local AI

https://jonready.com/blog/posts/agent-swarms-are-great-for-local-ai.html
1•mips_avatar•7m ago•1 comments

TinyS – Python-shaped syntax with Rust semantics

https://github.com/ewiger/TinyS/blob/main/TLDR.md
1•divingstar•10m ago•0 comments

The Great Barrier Reef is changing. Why isn't it on UNESCO's 'in danger' list?

https://www.unsw.edu.au/newsroom/news/2026/07/the-great-barrier-reef-is-changing-why-isnt-it-on-U...
3•littlexsparkee•14m ago•0 comments

Boeing asks US to intervene over record EU loan to Airbus

https://www.reuters.com/business/aerospace-defense/boeing-asks-us-intervene-over-record-eu-loan-a...
3•petethomas•15m ago•0 comments

A Journey to the Center of the SpiderMonkey Virtual Machine [video]

https://www.youtube.com/watch?v=yrk7fLVLBc8
2•pwnna•18m ago•0 comments

A flaky test exposed a Redis client use-after-free

https://buildkite.engineering/how-a-flaky-test-exposed-a-redis-use-after-free/
5•DrNemski•24m ago•0 comments

Making AI Movies

https://dawndrain.notion.site/Making-AI-Movies-39cbb81dad798077b43adcd96e3ebe75
2•jfil•27m ago•0 comments

I made ThoughtDAG – LLM as an editable graph, wires are the context

https://github.com/chenxiachan/thoughtdag
2•chatchan•28m ago•0 comments

"No AI" Statements Are More Than Mere Statements

https://journal.james-zhan.com/no-ai-statements/
3•birdculture•29m ago•0 comments

How the First Gravitational Waves Were Found (2016)

https://www.newyorker.com/tech/annals-of-technology/gravitational-waves-exist-heres-how-scientist...
1•cocacola1•33m ago•0 comments

Gigatoken: Fastest Tokenizer

https://twitter.com/marcelroed/status/2079642154960564352
2•convexstrictly•38m ago•1 comments

Do Skills Improve Coding Agent Accuracy?

https://orcabot.com/labs/do-skills-improve-coding-agent-accuracy
1•robbomacrae•38m ago•0 comments

About Cidpro

https://idpro.org/cidpro/
2•mooreds•40m ago•0 comments

Meta is testing an AI bedtime story app for people with no imagination

https://techcrunch.com/2026/07/21/meta-is-testing-an-ai-bedtime-story-app-for-people-with-no-imag...
6•mikelgan•42m ago•4 comments

The Reranker Tax: When a Smart Layer Can't Save a Weak Foundation

https://www.eoinhurrell.com/posts/20260717-the-reranker-tax/
1•mooreds•42m ago•0 comments

Why Huge Pages Matter for Postgres?

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•44m ago•0 comments

What Americans Need to Understand About China [video]

https://www.youtube.com/watch?v=DprKDXRlubw
3•mooreds•44m ago•0 comments

Show HN: Free Desktop OrcaBot for macOS

https://orcabot.com/blog/free-desktop-orcabot
1•robbomacrae•44m ago•0 comments

We gave a team of AI agents a company to run – how they decide what to do next

https://fieldnotesstudio.codeberg.page/blog/how-ai-agents-decide-what-to-do-next/
1•aifieldnotes•45m ago•0 comments

AI Companies Are Buying Tons of Old Books Because They're Free of AI Slop

https://nonogra.ph/ai-companies-are-buying-tons-of-old-books-because-theyre-free-of-ai-slop-07-22...
3•arkhiver•45m ago•0 comments

OSS-SEC: 432 Linux kernel CVEs (in less than 32 hours)

https://seclists.org/oss-sec/2026/q3/198
4•refp•45m ago•6 comments

How can a sticky note app make you ten times more productive?

https://www.taskloco.com/
1•tasklocozon•46m ago•0 comments

AI tutor that turns any document into interactive voice lessons

https://www.tutorlify.com/en
1•mcourrech•51m ago•0 comments

A hallmarks-of-aging profile from data you have

https://agelessatlas.com/
1•luciabazanw•52m ago•0 comments

Coding Used to Be Amazing

https://dinosaurseateverybody.com/blog/coding-used-to-be-amazing
2•dorkrawk•53m ago•0 comments

CDC travel notice for outbreak deadly incurable mosquito virus reaches Americas

https://www.dailymail.com/health/article-15993587/CDC-travel-advisory-costa-rica-chikungunya-viru...
3•Bender•54m ago•1 comments

Apple Maps and cartographic erasure of Jews

https://www.jns.org/opinion/daniel-winston/apple-maps-and-cartographic-erasure
2•bryanrasmussen•54m ago•1 comments

More testosterone won't make a better soldier or a tougher man

https://theconversation.com/more-testosterone-wont-make-a-better-soldier-or-a-tougher-man-aggress...
7•1659447091•54m ago•0 comments

Mochi 0.8.0

https://mochi.fast/blog/mochi-0-8-0/
2•khromov•55m ago•0 comments