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: Scalar.dev – Python/SQLite server-rendered starter app, no build step

https://getscalar.dev/
1•felipeccastro•52s ago•0 comments

My obsession making native resolution PS2 emulation look good

https://themaister.net/blog/2026/05/09/emulating-old-junk-from-yesteryear-or-my-obsession-making-...
2•vient•1m ago•0 comments

AI Evals: Everything You Need to Know

https://hamel.dev/blog/posts/evals-faq/
1•tosh•2m ago•0 comments

Flip Fluid on Flip Dots

https://mitxela.com/projects/flipflip
1•bariumbitmap•2m ago•0 comments

Nephew Tommy prank calls compilation and transcripts

https://nephew-tommy-pranks.up.railway.app/
1•sergiotapia•3m ago•0 comments

Why is the human body so crap except for the liver?

https://dynomight.net/liver/
2•surprisetalk•3m ago•0 comments

What I learned from joining the Kubernetes Blog team

https://www.kubernetes.dev/blog/2026/09/23/what-i-learned-from-joining-the-blog-team/
1•oaf357•6m ago•0 comments

Show HN: Potluck – Run local AI across the computers you own

https://trypotluck.ai/
2•robshippr•6m ago•0 comments

Max – An Analysis of Russia's State-Mandated Messaging Application

https://interseclab.org/research/max/
2•campuscodi•6m ago•0 comments

The Collie and the Pug

https://3blue1brown.substack.com/p/the-collie-and-the-pug
1•JohnHammersley•7m ago•0 comments

Experiencing writing at our recent Chinese calligraphy workshop

https://viewsproject.wordpress.com/2026/09/06/chinese-calligraphy-workshop/
2•surprisetalk•9m ago•0 comments

Agent-Manager: Reviewing code while an AI agent is still rewriting it

https://agent-manager.dev/writing/live-review-race/
1•yoanwaidev•10m ago•0 comments

Wasmer Swift SDK for iOS and macOS

https://wasmer.io/posts/wasmer-sdk-swift-ios-macos
1•CharlesW•11m ago•0 comments

Show HN: Armada – Every Claude Code and Codex session and limit, on one screen

https://armada.mgcrea.io/
1•olouv•12m ago•0 comments

Long Running Agents and the Assumption Problem

https://javiergonzalez.io/blog/the-assumption-problem/
1•javier123454321•12m ago•0 comments

Vocule: a custom WebGPU and WASM inference engine and web SDK for parakeet redux

https://karanganesan.com/vocule/
1•karanganesan•13m ago•0 comments

Show HN: Enclawed – A hard-fork hardening framework for AI agent gateways

https://enclawed.com/
1•enclawed•13m ago•0 comments

No PHP 8.6.0RC1

https://scherzer.dev/Blog/20260923-no-php86-rc-1
1•petecooper•15m ago•0 comments

Saudi oil scientists ended up working on most important climate reports

https://www.theguardian.com/environment/2026/sep/21/saudi-arabia-aramco-oil-scientists-ipcc-clima...
4•justin66•16m ago•0 comments

Show HN: Most Hated Tools

https://www.mosthatedtools.app/
1•leonagano•16m ago•0 comments

Show HN: ChaosTree 2.0.1: A highly optimized Java Sorted Set/Map library

https://github.com/Chaos-vy/ChaosTree
1•chaos_vy•20m ago•0 comments

Becoming a High Taste Tester

https://swyx.io/high-taste-tester
1•Rafsark•21m ago•0 comments

Voice AI Conference – Worth the Time?

https://deepgram.com/speak
1•moegevirtz•21m ago•1 comments

Norton antivirus software maker in talks to acquire GoDaddy

https://domainnamewire.com/2026/09/24/norton-antivirus-software-maker-in-talks-to-acquire-godaddy/
4•speckx•21m ago•0 comments

Games Explained

https://gamesexplained.com/
1•tilt•22m ago•0 comments

F-Droid 2.0: A New Chapter for Android Freedom

https://f-droid.org/2026/09/24/f-droid-2.0-a-new-chapter-for-android-freedom.html
71•daveoc64•22m ago•10 comments

GM's Stance on CarPlay Is as Fractured and Confusing As Ever

https://www.thedrive.com/news/gms-stance-on-carplay-is-as-fractured-and-confusing-as-ever
1•cf100clunk•23m ago•0 comments

Show HN: Local First AI Calculator

https://axiom.clor.app/
1•jacobgold•23m ago•0 comments

Jev Against a Cross-Encoder

https://getunblocked.com/blog/jev-in-production-vs-cross-encoder/
2•felineflock•24m ago•0 comments

Paperclip: Open-source orchestration for teams of AI agents

https://github.com/paperclipai/paperclip
1•lobo_tuerto•24m ago•0 comments