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?

I Waste Time on a Half-Hearted Issue and Now I'm Sharing It with You Enjoy:P

https://arewetauyet.dev/
1•birdculture•6s ago•0 comments

Show HN: Emailclaw–Email lovers' AI agent that creates scheduled task in 5 steps

https://github.com/emailclaw/emailclaw
1•markyu•15s ago•0 comments

Show HN: 243 – a 3×3 puzzle where the grid loops and three in a line fuses

https://play243.com/
1•Dogs2478•4m ago•0 comments

Show HN: Clor – The ADE where Claude and Codex work together with shared memory

2•jacobgold•4m ago•0 comments

Who Handles Your Security Reviews?

https://www.olafalders.com/2026/09/09/who-handles-your-security-reviews/
1•oalders•5m ago•0 comments

Reddit saves your keystrokes in text boxes

1•thomasjeff1•5m ago•0 comments

A phone reputation site search engines can't index

https://whocalledyou.dev/
1•ma1ms•6m ago•0 comments

Blizzard Entertainment Workers Ratify Video Game Contracts with CWA

https://cwa-union.org/news/releases/blizzard-entertainment-workers-ratify-historic-video-game-con...
1•toomuchtodo•6m ago•1 comments

What's a Computer?

https://blog.ctms.me/posts/2026-07-15-being-away-from-computers/
1•signa11•6m ago•0 comments

New Worflow Engine

https://github.com/hadielmougy/wiggle
1•helmougy•6m ago•0 comments

Homeschooling Explodes 200% in NYC

https://nypost.com/2026/09/09/lifestyle/why-nyc-parents-are-homeschooling-their-kids-in-2026/
2•simonebrunozzi•7m ago•0 comments

Three times an AI newsroom challenged its own published claims

https://areyto.media/corrections
1•rendonroman•8m ago•0 comments

Show HN: Unblur – Analyze your spending in the browser, no bank connection

https://unblur.money
1•hammaz•8m ago•0 comments

Breakscale: Live System Design Simulator

https://breakscale.tech/
1•domhudson•8m ago•1 comments

Canonical Evolution of Enterprise Open Source RISC-V at Hot Chips 2026

https://www.servethehome.com/canonical-evolution-of-enterprise-open-source-risc-v-at-hot-chips-2026/
1•fork-bomber•9m ago•0 comments

V2G is a paperwork problem, not a technology problem

https://justinkuiper.substack.com/p/to-scale-solar-we-need-millions-of
2•surprisetalk•10m ago•0 comments

YC created Flock 10 years ago

4•YCmadeFlock•10m ago•0 comments

Courts Can't Let Go of the Possibility That Individual Prices Are Copyrightable

https://blog.ericgoldman.org/archives/2026/09/courts-still-cant-let-go-of-the-possibility-that-in...
1•hn_acker•10m ago•1 comments

Show HN: Open statistics for every Finnish postal code, with an MCP server

https://suomiatlas.com/en/mcp
1•itulo•11m ago•0 comments

The "Bad Guy": Defensive Simplification and Moral Ambiguity in Police Work

https://journals.sagepub.com/doi/10.1177/00224278261467302
1•mdp2021•13m ago•1 comments

Toolproof, nine indexes that measure AI agent tooling from source

https://toolproof.kynth.studio
1•kyisaiah47•15m ago•0 comments

14yr old Russian female pilot

https://web.archive.org/web/20231021135735oe_/https://rr1---sn-o097znzd.googlevideo.com/videoplay...
1•barrister•16m ago•1 comments

Show HN: Email where an address is a keypair, with an SMTP bridge

https://dmcn.dev/
1•mertenvg•16m ago•0 comments

Why becoming rich is not evli?

1•iaziz786•17m ago•0 comments

Ask HN: Would you support an anti-AI organization financially?

1•roschdal•19m ago•2 comments

The Bulldozing of an Interface

https://blog.jim-nielsen.com/2026/bulldoze-ui/
1•Brajeshwar•20m ago•0 comments

Japan's book scene is quietly moving from bookstores to libraries

https://untranslatedjp.substack.com/p/japans-book-scene-is-quietly-moving
4•speckx•20m ago•2 comments

Caption.me now autonomously improves itself

https://forum.caption.me/t/caption-me-now-autonomously-improves-itself/2284
2•cbeach•20m ago•0 comments

Medicine Needs to Get Serious About AI

https://www.theatlantic.com/health/2026/09/artificial-intelligence-autonomous-doctor-medicine/688...
2•hdvr•21m ago•0 comments

You Could Have Come Up with Speculative Decoding

https://amandeepsp.github.io/blog/spec-decode/
1•amandeepspdhr•22m ago•0 comments