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?

Caching Is Not Free

https://pkritiotis.io/caching-is-not-free/
1•pkritiotis•32s ago•0 comments

Guide to data tools landscape for developers

https://sinja.io/blog/data-landscape-guide-for-developers
1•OlegWock•1m ago•0 comments

Baba Is Solved by Fable 5 and GPT-5.6 Sol, but at what cost?

https://quesma.com/blog/baba-is-bench/
1•stared•1m ago•1 comments

Claude can now use your 1Password credentials for you

https://www.theverge.com/tech/966442/1password-anthropic-claude-browser-integration
1•pavel_lishin•1m ago•0 comments

Kimi K3

https://platform.kimi.ai/docs/models
2•berlianta•2m ago•0 comments

Self-hosted, fast clip generator for macOS

https://github.com/joonfjp/ripeclips
1•trndgtr•3m ago•0 comments

We're Building Postgres in Rust. Using the LLVM of Databases

https://turso.tech/blog/a-new-modern-version-of-postgres-in-rust
1•polyrand•3m ago•0 comments

Call GPT 5.6-Sol Pro, Fable 5, SuperGrok Subscripions from Codex, Claude

https://github.com/agentify-sh/desktop
1•agentifysh•5m ago•0 comments

Distinguishing Variables from Parameters

https://www.johndcook.com/blog/2026/06/30/variables-and-parameters/
1•ibobev•8m ago•0 comments

Silver Rectangles and the Ways of Kings

https://www.johndcook.com/blog/2026/06/30/silver-kings/
1•ibobev•8m ago•0 comments

Derivative Equals Inverse

https://www.johndcook.com/blog/2026/06/29/derivative-equals-inverse/
2•ibobev•8m ago•0 comments

Should You Recline Your Airplane Seat?

https://www.newyorker.com/culture/open-questions/should-you-recline-your-airplane-seat
1•bookofjoe•10m ago•1 comments

How to unionize your tech workplace

https://www.computerworld.com/article/4192438/how-to-unionize-your-tech-workplace.html
4•speckx•10m ago•0 comments

Sqleibniz – Static Analysis and LSP for SQL in Rust

https://github.com/xnacly/sqleibniz
1•xnacly•11m ago•0 comments

If you see a datacenter in orbit, it means something went wrong on Earth

https://systemsthinkingcollection.substack.com/p/space-datacenters
2•InputName•11m ago•0 comments

Show HN: Trying to fix the web scraping industry's benchmark problem

https://github.com/usestring/web-data-frontier-benchmark
5•rohitshenoy•11m ago•0 comments

I'd prefer to avoid AI comments on Reddit and HN

2•alance•12m ago•0 comments

We are officially writing a new version of Postgres. in Rust

https://twitter.com/glcst/status/2077759127682486561
2•tosh•13m ago•0 comments

Former OpenAI CTO builds open weight model in 9 months

https://techcrunch.com/2026/07/15/thinking-machines-amps-up-its-bet-against-one-size-fits-all-ai-...
1•noashavit•13m ago•0 comments

The discourse about software craftsmanship conveniently ignores distribution

https://kerkour.com/software-craftsmanship-last-mile-delivery
2•cold_pizz4•14m ago•0 comments

Chatto is Robots

https://www.hmans.dev/blog/chatto-is-robots
2•hendrikmans•14m ago•0 comments

Kimi K3 is now live

https://www.kimi.com/en
5•vincent_s•14m ago•0 comments

Reviewing a restaurant as "just ok" considered defamatory in Germany

https://twitter.com/eigen_moomin/status/2077471686295957749
2•kirlfiend_grill•16m ago•0 comments

Hardware Needs Its Vibe Coding Moment

https://opuslabs.substack.com/p/hardware-needs-its-vibe-coding-moment
1•opuslabs•17m ago•0 comments

AI and Microsoft's Hubris: Return of the Browser Wars

https://www.korte.co/2026/07/16/ai-and-microsofts-hubris-return-of-the-browser-wars/
1•speckx•17m ago•0 comments

MongoDB v. FerretDB: When Open Source Compatibility Becomes a Patent Risk

https://shujisado.org/2026/07/15/mongodb-v-ferretdb-when-open-source-compatibility-becomes-a-pate...
2•Brajeshwar•18m ago•0 comments

Smart Ring Aims to Replace the 150-Year-Old Blood Pressure Cuff

https://www.bloomberg.com/news/features/2026-07-16/vital-signals-announces-399-signal-ring-that-g...
1•brandonb•19m ago•1 comments

Title: Show HN: a zero-dependency, self-hosting JavaScript-to-native compiler

https://github.com/qorm/jsbin
1•qorm•19m ago•0 comments

GPT-5.6 unexpected file deletions

https://twitter.com/thsottiaux/status/2077630111499882637
2•lobo_tuerto•20m ago•1 comments

I've been thinking about null pointers

https://sebsite.pw/w/20260715-null.html
1•birdculture•21m ago•0 comments