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?

Erasing Existentials

https://wolfgirl.dev/blog/2026-05-20-erasing-existentials/
2•birdculture•4m ago•0 comments

Show HN: Exploring a More Pythonic AWS SDK

https://github.com/kap-sh/aws-sdk-python
1•karpetrosyan•5m ago•0 comments

AI Boom Hits Labor Market Reality Check

https://fivetakes.news/workers-are-emerging-as-the-next-big-ai-logjam
1•mmeirovich•5m ago•0 comments

Claude Guillemot: Ubisoft founder killed in plane crash

https://news.sky.com/story/claude-guillemot-ubisoft-founder-killed-in-plane-crash-13556248
1•austinallegro•6m ago•0 comments

Show HN: Scalable reversi – infinite undo available via a1 style

https://h1yapp.com/en/scripting/pwa/scalablereversi/
1•h1yapp•7m ago•0 comments

Apple Internals: Swift in the Kernel

https://blog.calif.io/p/apple-internals-swift-in-the-kernel
1•haeseong•9m ago•0 comments

Robotics Teams Are Rebuilding the Data Stack from Scratch

https://rerun.io/blog/data-layer-tax
1•Tycho87•10m ago•0 comments

I was wrong about the Midjourney ultra-sound scanner

https://twitter.com/MattZirwas/status/2068365802491834541
2•MrBuddyCasino•12m ago•0 comments

Backtest Is Lying to You

https://moai.studio/blog/posts/your-backtest-is-lying.html
3•ionwake•12m ago•0 comments

How to Build a Marketplace Startup That Solves the Chicken-and-Egg Problem

https://startupfortune.com/how-to-build-a-marketplace-startup-that-solves-the-chicken-and-egg-pro...
2•insanetech•12m ago•0 comments

Why the Cookbook Endures

https://tastecooking.com/why-the-cookbook-endures/
3•Tomte•15m ago•0 comments

Electric air taxis are stuck in the courtroom

https://www.theverge.com/column/950975/electric-air-taxis-lawsuits
3•Brajeshwar•16m ago•1 comments

Backporting bug fixes is dead, Project Valkey now sends in the bots

https://thenewstack.io/valkey-ai-backporting-agents/
2•Brajeshwar•16m ago•0 comments

Linux '95

https://www.linuxjournal.com/article/2682
1•theanonymousone•16m ago•0 comments

Vulgar Materialism

https://borretti.me/article/on-vulgar-materialism
1•Tomte•17m ago•0 comments

Show HN: Teach your kids absolute (perfect) pitch

https://github.com/paytonjjones/bsharp
1•paytonjjones•17m ago•0 comments

Printing Gaussian Splats

https://www.patreon.com/DanyBittel/posts/printing-splats-161333338
2•ilnmtlbnm•18m ago•0 comments

Show HN: TermType – a terminal typing game where words fall like Space Invaders

https://github.com/GiovanniCst/termtype
3•J_cst•18m ago•0 comments

Anthropic to Require ID Verification for Certain Capabilities Starting July 8

https://old.reddit.com/r/ClaudeAI/comments/1ubm53n/official_anthropic_to_require_identity/
24•bathory•23m ago•8 comments

Why Mizoram has shops without shopkeepers (2024)

https://timesofindia.indiatimes.com/etimes/trending/why-mizoram-has-shops-without-shopkeepers/art...
1•susam•24m ago•0 comments

Show HN: A GitHub app that suggests code fixes for conversion failures

https://rejourney.co/demo/leaks
3•mrr7337•24m ago•0 comments

Smashing the NIMBYs created modern capitalism

https://worksinprogress.co/issue/how-abolishing-the-stakeholder-state-caused-the-industrial-revol...
1•momentmaker•24m ago•0 comments

Safe SIMD in Rust, Even on the Inside – By Sergey "Shnatsel" Davidoff

https://shnatsel.medium.com/safe-simd-in-rust-even-on-the-inside-c6f1ff381828
1•rbanffy•26m ago•0 comments

Why do sports stadiums have different names for the World Cup? Here's the reason

https://www.thv11.com/article/sports/soccer/world-cup/fifa-world-cup-stadiums-different-names/507...
2•RickJWagner•28m ago•0 comments

Neosolve – SolveSpace fork with OpenCASCADE CAD kernel

https://github.com/0xSeren/neosolve
1•nakedneuron•31m ago•1 comments

Creativity in the form of archived web pages from the dawn of the internet

https://www.cameronsworld.net
2•momentmaker•32m ago•0 comments

How the social media ban could reshape how all of us use the internet

https://www.bbc.co.uk/news/articles/c1jy512r19ro
2•mmarian•33m ago•0 comments

Where the sun stood at the 2026 summer solstice

https://pilgrimapp.org/sunpath/2026-summer-solstice/
1•momentmaker•33m ago•0 comments

Solvespace Web Version

http://orthogonal.cc/solvespace/solvespace.html
1•nakedneuron•33m ago•0 comments

Developer ends Fornjot (CAD kernel) development

https://www.fornjot.app/blog/shutting-down-fornjot/
1•nakedneuron•34m ago•0 comments