frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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?

Stop Posting About Claude Getting Worse, You're Embarrassing Yourselves

https://mdelcaro.substack.com/p/stop-posting-about-claude-getting
1•fathermarz•2m ago•0 comments

OpenAI CEO apologizes to Tumbler Ridge community

https://techcrunch.com/2026/04/25/openai-ceo-apologizes-to-tumbler-ridge-community/
1•latein•4m ago•0 comments

North American Millets Alliance(2023)

https://milletsalliance.org/
1•num42•4m ago•0 comments

Architecture of Honesty, Why Claude Swept Seven Rounds

https://sso.accounts.dowjones.com/login-page?scope=openid+profile+email+pib+is_dowjones_employee&...
1•Paodim•5m ago•0 comments

Research Topics in AI and ML in 2026 and Their Philosophical Connections

https://omseeth.github.io/blog/2026/philosophy_2026/
1•philoai•5m ago•0 comments

Mine, an IDE for Coalton and Common Lisp

https://coalton-lang.github.io/mine/
1•varjag•6m ago•0 comments

After 5000 applications, 1000s of rejections got an offer – tech UK

https://www.youtube.com/watch?v=RRGOAj2dEX4
1•shaanuknow•7m ago•1 comments

The longest train journey in the EU

https://jonworth.eu/the-longest-train-journey-in-the-eu/
2•fanf2•11m ago•0 comments

Claude Mythos: The first AI-native cyberweapon?

https://en.landingfymax.com.br/cybersecurity/claude-mythos-ai-cyber-weapon-2026
1•EvCarvalho•12m ago•0 comments

An amateur just solved a 60-year-old math problem–by asking AI

https://www.scientificamerican.com/article/amateur-armed-with-chatgpt-vibe-maths-a-60-year-old-pr...
1•pr337h4m•12m ago•0 comments

Count tokens, model compatibility, and estimated costs

https://howmanytokens.app/
1•walidio•13m ago•0 comments

Swift-bridge facilitates Rust and Swift interop

https://github.com/chinedufn/swift-bridge
1•dlahoda•15m ago•0 comments

Ask HN: How to think in terms of parallel Claude agents

2•gndp•17m ago•0 comments

Why Maine's Governor Just Killed a Pioneering Data Center Moratorium

https://www.motherjones.com/politics/2026/04/maine-data-center-janet-mills-veto/
1•cdrnsf•19m ago•1 comments

Sense, local code intelligence for AI coding agents

https://luuuc.github.io/sense/
1•luuuc•19m ago•0 comments

I found an old telephone and made it control Spotify

https://natya.is-a.dev/the-beetel/
1•birdculture•19m ago•0 comments

FSF Position on "Ethical" AI

https://www.fsf.org/blogs/licensing/rail-are-nonfree-and-unethical
1•j_m_b•20m ago•0 comments

The AI Compute Crunch Is Here (and It's Affecting the Economy)

https://www.404media.co/the-ai-compute-crunch-is-here-and-its-affecting-the-entire-economy/
1•Brajeshwar•20m ago•0 comments

Scientists are worried about Atlantic Meridional Overturning Circulation slowing

https://www.cbc.ca/news/science/amoc-slowdown-9.7176387
6•pseudolus•20m ago•0 comments

"Wealth inflation" has led to "elite overproduction"

https://greyenlightenment.com/2026/02/07/wealth-inflation-leads-to-elite-overproduction/
2•paulpauper•22m ago•0 comments

Claude OAuth

https://developer.puter.com/tutorials/claude-oauth/
1•ent101•22m ago•0 comments

Ada Palmer's "Inventing the Renaissance"

https://pluralistic.net/2026/04/25/machiavellian/
1•hn_acker•25m ago•0 comments

Chatnik: LLM Host in the Shell

https://rakuforprediction.wordpress.com/2026/04/25/chatnik-llm-host-in-the-shell-part-1-first-exa...
2•librasteve•25m ago•0 comments

Tabularis: A lightweight, cross-platform database client for developers

https://github.com/TabularisDB/tabularis
1•thunderbong•27m ago•0 comments

The implementation of Carrier Pigeon Internet Protocol RFC1149 25 years later

https://bsdly.blogspot.com/2026/04/the-implementation-of-carrier-pigeon.html
1•zdw•27m ago•0 comments

A Brain Dump of What I Worked on for Uncharted 4 (2016)

https://allenchou.net/2016/05/a-brain-dump-of-what-i-worked-on-for-uncharted-4/
1•downbad_•30m ago•1 comments

Show HN:I built a deterministic 10k-node VRP solver on a $100 phone

1•CTSuwan•32m ago•0 comments

Hokusai and Tesselations

https://dl.ndl.go.jp/pid/1899550/1/11/
6•srean•32m ago•1 comments

Clean energy pushes fossil-fuel power into reverse for 'first time ever'

https://www.carbonbrief.org/clean-energy-pushes-fossil-fuel-power-into-reverse-for-first-time-ever/
4•xbmcuser•32m ago•1 comments

Simulacrum of Knowledge Work

https://blog.happyfellow.dev/simulacrum-of-knowledge-work/
2•thehappyfellow•32m ago•0 comments