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?

The Dancing Plague of 1518

https://publicdomainreview.org/essay/the-dancing-plague-of-1518/
1•hakkikonu•18s ago•0 comments

Do your backtests ever hit i64 limits?

https://www.reddit.com/r/quant/comments/1vc2dk1/do_your_backtests_ever_hit_i64_limits/
1•syumei•3m ago•0 comments

DeepSeek-V4-Flash-0731 model weights (MIT)

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731
1•lostmsu•5m ago•0 comments

FreeCloud turns any of your web hosting space into a personal cloud drive

https://github.com/KyleBenzle/FreeCloud
1•KyleBenzleKyle•5m ago•0 comments

OpenAI finds evidence other AI agents escaped containment as it widens probe

https://www.reuters.com/business/openai-finds-evidence-other-ai-agents-escaped-containment-it-wid...
2•ajyoon•5m ago•1 comments

Show HN: Collaborative Docx Editor with MS Word Parity

https://collab.word-in-web.com/
2•theRealestAEP•5m ago•0 comments

Glanceboard

https://github.com/google-gemini/glanceboard
1•xnx•6m ago•0 comments

Show HN: How to build and self-host a code review agent

https://www.trytilde.ai/blog/how-to-build-code-review-agent
1•solsol94•6m ago•0 comments

Marvin Minsky: a proof that led to the first AI winter

https://nirmalutwani.substack.com/p/the-ai-winter-started-with-a-math
1•nutwani91•6m ago•1 comments

Show HN: Brainstorm – a local-first, AI-native OS for knowledge work

https://getbrainstorm.online/
1•th3-br41n•7m ago•0 comments

Show HN: I built a real-time thermodynamic phase space for cognitive stress

https://www.academia.edu/171059862/GESAMTWERK_METAPHYSISCHE_SYSTEMTHEORIE_V3_8_REFS?source=swp_share
1•MMSI•7m ago•0 comments

The Boss Wants This Money': Inside Trump's Unprecedented Fundraising Operation

https://www.wsj.com/politics/policy/trump-donations-company-fundraising-1e34a78f
1•marysminefnuf•9m ago•0 comments

An old-new take on argument parsing in Rust

https://blogsystem5.substack.com/p/hello-getoptsargs
1•ingve•9m ago•0 comments

In California town, Flock misread license plates in 71% of alerts sent to police

https://www.businessinsider.com/flock-camera-misread-license-plate-reader-california-roseville-po...
3•petethomas•11m ago•0 comments

Why pubs are closing: meet the new Gen Z social scene

https://www.cnn.com/2026/07/25/travel/uk-pubs-closing-genz-running-scli-intl
3•andrewstetsenko•12m ago•0 comments

Why you keep buying books you don't read – and why it feels good

https://www.rte.ie/brainstorm/2026/0731/1585316-books-reading-tsundoku-dopamine-psychology/
3•austinallegro•12m ago•0 comments

Prompt Caching in Agents

https://earendil.com/posts/prompt-caching/
2•gmays•14m ago•0 comments

Kioxia CM10 Is Its First PCIe 6.0 Enterprise SSD, Aimed at Nvidia CMX KV Cache

https://www.storagereview.com/news/kioxia-cm10-is-its-first-pcie-6-0-enterprise-ssd-aimed-at-nvid...
2•rbanffy•16m ago•0 comments

Domains by the Numbers

https://www.dotcom.press/archive/domains-by-the-numbers
2•samwho•17m ago•0 comments

Colorado River Water Plan Postpones Reckoning with a Drier Future

https://www.bloomberg.com/news/articles/2026-07-31/colorado-river-water-plan-postpones-reckoning-...
2•toomuchtodo•18m ago•1 comments

Cursor Is Down

https://status.cursor.com
4•Spunkie•19m ago•2 comments

Politics and Emotion at Local-First Conf

https://adamwiggins.com/posts/politics-and-emotion-at-local-first-conf/
2•tobr•21m ago•0 comments

Duff's Device – The C Speed Hack From 1983

https://en.wikipedia.org/wiki/Duff%27s_device
1•bananamogul•21m ago•0 comments

Show HN: Offline Flock Navigation

https://trames.karazajac.io
1•arkwin•23m ago•0 comments

Inequality, Interest Rates, Aging, and the Role of Central Banks (2021)

https://theovershoot.co/p/inequality-interest-rates-aging-and
1•downbad_•24m ago•0 comments

What "Applicable" Means on Windows

https://tridentstack.com/blog/what-applicable-really-means-on-windows
1•Ad3t0•26m ago•0 comments

Don't stop early: Case-folding source code at memory speed

https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-cod...
1•sbulaev•27m ago•0 comments

Show HN: Vinv – IDE plug-in that finds and fixes bugs, dead code and perf issues

https://github.com/VinvAI/VinvAI
1•sohamac•27m ago•0 comments

AMD splits Zen 7 into three EPYC families for 2028

https://www.tomshardware.com/pc-components/cpus/amd-splits-zen-7-into-three-epyc-families-for-202...
2•rbanffy•27m ago•0 comments

Why your AI startup dies at customer six (and the three-layer fix)

https://github.com/teal-sea/why-your-ai-startup-dies-at-customer-six
2•tlince•29m ago•1 comments