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?

Show HN: Markdown Gatekeeper – one current source per topic for AI agents

https://github.com/nanlogic/markdown-gatekeeper
2•sacravenger•3m ago•0 comments

TrackerControl for Android

https://trackercontrol.org/
1•uoaei•4m ago•0 comments

What we've learned building cloud agents

https://cursor.com/blog/cloud-agent-lessons
1•shenli3514•5m ago•0 comments

Show HN: Pastecmd – copy/paste between Phone/PC, end-to-end encrypted

https://pastecmd.com
2•DavidD•8m ago•0 comments

A Hedge-Fund Titan's Divorce Is Putting Wall Street's Staggering Wealth on Publi

https://www.wsj.com/personal-finance/a-hedge-fund-titans-divorce-is-putting-wall-streets-staggeri...
2•kamaraju•11m ago•0 comments

EngineRed: Asymmetric AI Warfare

https://sma-das.blog/blogs/enginered-asymmetric-ai-warfare
1•smadas•11m ago•0 comments

Insightify – AI review analytics for Shopify

https://apps.shopify.com/aireview-analyzer
1•Insightify•11m ago•0 comments

Show HN: Haserupt – A new way to reduce your phone usage

https://www.haserupt.com
2•vishalds•13m ago•0 comments

A Switch-Level Simulation Model for Integrated Logic Circuits (1981) [pdf]

https://www.cs.cmu.edu/~bryant/pubdir/MIT-LCS-TR-259.pdf
1•gregsadetsky•16m ago•0 comments

3D Spatial Transformer Network (2016)

https://github.com/shubhtuls/stn3d
1•peter_d_sherman•17m ago•0 comments

An Interpretation of the POSIX regex Standard [pdf]

https://dn790006.ca.archive.org/0/items/glenn_fowler_interpretation_of_posix_standard/glenn_fowle...
1•pcfwik•19m ago•0 comments

Dropbox says about 5k accounts compromised in August hack

https://www.reuters.com/technology/dropbox-says-about-5000-accounts-compromised-august-hack-2026-...
1•malshe•21m ago•0 comments

Firefox's new native iOS ad blocker won't block all ads

https://www.neowin.net/news/you-can-now-block-some-ads-in-firefox-on-ios/
3•bundie•25m ago•0 comments

LiveTube Yt live Front End

https://ytfe.vercel.app/
1•alexander2002•28m ago•0 comments

AI wealth is creating a 'mansion shortage' upending San Francisco housing market

https://text.npr.org/nx-s1-5930432
3•1659447091•30m ago•1 comments

32nd Annual Interactive Fiction Competition

https://ifcomp.org/
1•ChicagoDave•30m ago•0 comments

True Rate of Unemployment

https://www.lisep.org/tru
2•ptrhvns•31m ago•0 comments

From poop to plants, how wolves help blueberries grow and spread in northern Min

https://www.mprnews.org/story/2026/08/30/how-wolves-help-blueberries-grow-and-spread-in-northern-...
2•EveryonePoops•32m ago•1 comments

'Idiocracy' Predicted All of This

https://www.texasmonthly.com/culture/mike-judge-idiocracy-turns-20/
3•pseudolus•33m ago•0 comments

Poop-maxxing: How a 30-year-old chart became a hot gut health trend

https://www.nbcnews.com/health/health-news/poop-maxxing-bowel-movement-track-fiber-bristol-chart-...
2•EveryonePoops•34m ago•0 comments

The Next Generation of Blockchains

https://egoblockchain.com/
1•artitmuhaxhiri•35m ago•0 comments

Show HN: One versioned standard for a fleet's Python packages

https://github.com/gojiplus/py-canon
1•neehao•37m ago•0 comments

Show HN: Forum – WebRTC video app with individual stream links for OBS

https://komu-forum.vercel.app/
2•Komumech•41m ago•0 comments

Show HN: Didit.run – did your cron job run?

https://didit.run
1•vi0ne•42m ago•0 comments

The Bitocoin Mining Investor

https://www.thebitcoinmininginvestor.com/?r=85nwr&utm_campaign=referrals-subscribe-page-share-scr...
1•iaspt•43m ago•0 comments

OpenAI having an outage with 5.6 sol?

2•rcleveng•45m ago•1 comments

Were Claude's Weekly Limits Cut in Half? (and obscured by another 50% "deal"?)

2•benwills•47m ago•0 comments

How we could save petabytes of cache storage with Zstandard and Pingora

https://blog.cloudflare.com/cache-transcoding/
1•soheilpro•47m ago•0 comments

Fine, I'll build my own text editor

https://dbushell.com/2026/09/01/text-editor/
1•signa11•49m ago•0 comments

What's the Right Balance in Regulating AI?

https://weightythoughts.com/p/whats-the-right-balance-in-regulating
1•gmays•50m ago•0 comments