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?

Who You Gonna Call

https://www.slater.dev/2026/07/who-you-gonna-call/
1•sltr•52s ago•0 comments

3D-printed SSD cartridges revive physical media for PC gaming

https://hackaday.com/2026/07/20/old-ssds-find-new-life-as-game-cartridges/
1•whiteblossom•52s ago•0 comments

Why am I not able to postttttttt

1•dakshjainn•2m ago•0 comments

Show HN: NeonD – my open-source DX-oriented PG Control Plane gained 121 stars

https://github.com/matisiekpl/neond
1•matisiekpl•2m ago•1 comments

Customer Identity vs. Identity Access Management Explained

https://fusionauth.io/articles/ciam/ciam-vs-iam
1•mooreds•4m ago•0 comments

TargetBridge – use a compatible Intel iMac as a display for a Mac

https://github.com/swellweb/targetBridge
1•targetbridge•4m ago•0 comments

The head of the US AI safety agency has resigned

https://www.reuters.com/world/us/head-us-ai-safety-agency-resigns-2026-07-20/
1•chirau•5m ago•0 comments

Safety and alignment in an era of long-horizon models

https://openai.com/index/safety-alignment-long-horizon-models/
2•Wingy•6m ago•0 comments

Bortle Scale

https://en.wikipedia.org/wiki/Bortle_scale
1•RetroTechie•6m ago•0 comments

Claude Code repo: issues labeled as duplicates without referencing the original

https://github.com/anthropics/claude-code/issues/79523
1•marcindulak•7m ago•0 comments

Making ASCII Art in Vim

https://alexyang.dev/vim-ascii-art/
1•evakhoury•8m ago•0 comments

Ursa Space discloses $27.9M equity financing from two investors

https://runtimewire.com/article/ursa-space-discloses-27-9-million-equity-financing
1•ryanmerket•8m ago•0 comments

Advice for New Managers (2016)

https://www.ycombinator.com/blog/advice-for-new-managers
1•andsoitis•9m ago•0 comments

Evaluating Black Scholes Times a Second on a MacBook Air with MDBX

https://modolap.substack.com/p/evaluating-black-scholes-2-million
1•ronfriedhaber•10m ago•0 comments

The Playbook for Building an AI Native Company

https://www.ycombinator.com/library/OX-the-playbook-for-building-an-ai-native-company
2•andsoitis•11m ago•0 comments

Extending MVCC to be serializable, in TLA+ (2024)

https://surfingcomplexity.blog/2024/11/03/extending-mvcc-to-be-serializable-in-tla/
1•eatonphil•12m ago•0 comments

Four Farmers Faked a Drought and Stole Millions in Crop Insurance

https://www.agweb.com/news/business/rain-robbers-how-four-farmers-faked-drought-and-stole-million...
1•toomuchtodo•14m ago•1 comments

The algorithm behind the 104 World Cup posters

https://zehfernandes.com/posts/how-i-turned-world-cup-data-into-posters
1•zehfernandes•14m ago•0 comments

Did the Operation Succeed? On End-to-End Arguments in System Design

https://mohamed.computer/posts/the-message-arrived/
1•cipherself•14m ago•0 comments

What Is Yuanjiwei, the Chinese Startup Promising 5nm Chips Without EUV?

https://mrkt30.com/what-is-yuanjiwei-the-chinese-startup-promising-5nm-chips-without-euv/
1•technewssss•14m ago•0 comments

The Agricultural Revolution in Private Markets

https://www.accreditedinsight.com/p/the-agricultural-revolution-in-private
1•petethomas•15m ago•0 comments

The Growing Abundance of Finished Goods: 1971-2024

https://humanprogress.org/the-growing-abundance-of-finished-goods-1971-2024/
1•throw0101d•15m ago•0 comments

Netlify Adds a Kill Switch for Runaway AI Agent Spend

https://firerun.io/blog/netlify-per-member-ai-spend-limits-2026/
1•gbourne•15m ago•0 comments

Ask HN: How do I reliably eval my AI models

1•trevorpark•16m ago•0 comments

The biggest winners of the American economy fear they're sinking fast

https://www.washingtonpost.com/technology/2026/07/19/tech-has-never-been-richer-its-workers-have-...
3•gmays•18m ago•0 comments

Beyond grep: The case for a context-rich AI coding harness

https://arstechnica.com/ai/2026/07/beyond-grep-the-case-for-a-context-rich-ai-coding-harness/
2•emmabot43•21m ago•0 comments

Show HN: I built claw-coder which is the first atonomous local AI agent

2•GabrielBlessed•21m ago•1 comments

Chrome-agent: LLM-native browser automation tool written in Rust

https://github.com/sderosiaux/chrome-agent
2•chtefi•24m ago•0 comments

A new ML compiler to run 70B+ LLMs on consumer GPUs with <1% accuracy loss

https://www.orafrontier.com/
2•marcelbuilds•25m ago•1 comments

» the Life and Times of Maxis, Part 2: SimWorld

https://www.filfre.net/2026/07/the-life-and-times-of-maxis-part-2-simworld/
3•ibobev•26m ago•0 comments