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

/Sanctuary – A Terminal Elegy

https://a-life.vercel.app/
1•mattcbaker•15s ago•0 comments

Conservatism Consists of One Proposition

https://crookedtimber.org/2018/03/21/liberals-against-progressives/
1•ravenical•37s ago•0 comments

AI Took Control of My Life and I Love It

https://www.thefp.com/p/ai-took-control-of-my-life-and-i
1•mhb•2m ago•0 comments

If You Want Different Outcomes, You Have to Do Different Things

https://freddiedeboer.substack.com/p/if-you-want-different-outcomes-you
1•c0nsumer•5m ago•0 comments

The Engineering Behind Clawdbot

https://vindler.solutions/blog/clawdbot-technical-deep-dive
1•cdutra•6m ago•0 comments

The clever way food trucks are now using e-bike batteries

https://electrek.co/2026/01/25/the-clever-way-food-trucks-are-now-using-e-bike-batteries/
3•jerlam•8m ago•0 comments

Scientists Identify Brain Waves That Define the Limits of 'You'

https://www.sciencealert.com/scientists-identify-brain-waves-that-define-the-limits-of-you
2•mikhael•8m ago•0 comments

GNU Guix 1.5.0 Released

https://guix.gnu.org/blog/2026/gnu-guix-1.5.0-released/
1•_emacsomancer_•10m ago•0 comments

Show HN: Beach Report – Real-time beach conditions, weather, and surf reports

https://beach.report
1•theantonym•11m ago•0 comments

Halley's Comet wrongly named: 11th-century English monk predates British astrono

https://phys.org/news/2026-01-halley-comet-wrongly-11th-century.html
5•bookmtn•12m ago•1 comments

Tell HN: I Have Won HN

10•neilv•14m ago•3 comments

Cool Discussion on Signs

https://old.reddit.com/r/OpenChristian/comments/13ogqcn/signs_from_god_does_anyone_feel_this_actu...
1•marysminefnuf•20m ago•2 comments

MIT-Human License Proposal

https://github.com/tautvilas/MIT-Human/blob/main/LICENSE
2•brisky•20m ago•2 comments

Trade an alliance for an island? That's a bad deal

https://www.cnn.com/2026/01/25/politics/greenland-nato-ancient-greece-expert-analysis
2•breve•21m ago•0 comments

De-Vibing a Codebase

https://dumbideas.xyz/posts/de-vibing-a-codebase/
2•omegastick•22m ago•0 comments

Google's Gist: Greedy Independent Set Thresholding for Retrieval Explained

https://websiteaiscore.com/blog/gist-vector-exclusion-zones
2•aggeeinn•24m ago•1 comments

Show HN: GroqBash – Single‑File Bash Client for Groq API

https://github.com/kamaludu/groqbash
1•kamaludu•26m ago•0 comments

"We're aware of the DMCA takedown notice of julialang logo by an OF creator"

https://twitter.com/KenoFischer/status/2014327875277602983
5•sundarurfriend•26m ago•0 comments

Home solar in rural America: how much battery do you need in a winter storm?

https://electrek.co/2026/01/24/home-solar-in-rural-america-how-much-battery-do-you-need-in-a-wint...
1•Bender•27m ago•1 comments

Show HN: Spine – an execution-centric backend framework for Go

https://spine.na2ru2.me/en/
1•narubrown•27m ago•0 comments

Malicious ad blocker extension uses 'CrashFix' to spread new Python RAT

https://www.scworld.com/news/malicious-ad-blocker-extension-uses-crashfix-to-spread-new-python-rat
2•Bender•28m ago•0 comments

Show HN:PolyMCP – from Server to WebAssembly from the Same Python Code

1•justvugg•29m ago•0 comments

Is This Billionaire a Financial Genius or a Fraudster?

https://www.nytimes.com/2026/01/16/business/michael-saylor-strategy-bitcoin.html
2•zerosizedweasle•31m ago•5 comments

Long branches in compilers, assemblers, and linkers

https://maskray.me/blog/2026-01-25-long-branches-in-compilers-assemblers-and-linkers
2•MaskRay•31m ago•0 comments

LLMs – Part 3: Context Matters – Self Attention

https://vasupasupuleti.substack.com/p/llms-part-3-context-matters-self
1•vpasupuleti10•31m ago•0 comments

Retrieve and Rerank: Personalized Search Without Leaving Postgres

https://www.paradedb.com/blog/personalized-search-in-postgresql
1•SouravInsights•32m ago•0 comments

Clawdbot Showed Me What the Future of Personal AI Assistants Looks Like

https://www.macstories.net/stories/clawdbot-showed-me-what-the-future-of-personal-ai-assistants-l...
1•Anon84•32m ago•0 comments

Show HN: Approval workflows for AI agents using OAuth

https://github.com/baristaGeek/auth-for-agents
1•baristaGeek•34m ago•0 comments

How Playing Pokémon Became the Ultimate Test of AI's Intelligence

https://www.wsj.com/articles/how-playing-pokemon-became-the-ultimate-test-of-ais-intelligence-140...
1•bookofjoe•37m ago•1 comments

In Defense of the .zip TLD

https://luke.zip/posts/zip-defense/
1•yathern•39m ago•3 comments