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?

Dzugg: A WireGuard VPN tested in China, built for family, seeking first real usr

https://dzugg.com/
1•peeweez•35s ago•0 comments

Uber pledges $10B to win robotaxi race

https://www.ft.com/content/04d6fcb4-03e4-4ee5-9017-ccaa7808c934
2•JumpCrisscross•2m ago•0 comments

The Importance of a Problem List

https://mathinstitutes.org/highlights/the-importance-of-a-problem-list
2•frozenseven•6m ago•0 comments

What Happened to Talenti?

https://www.nytimes.com/wirecutter/reviews/talenti-investigation/
2•jerlam•6m ago•0 comments

Notice of ICANN .bitcoin TLD community application

https://twitter.com/wiz/status/2085029140453830725
1•greyface-•7m ago•0 comments

SEC Establishes Financial Reporting and Accounting Unit in Enforcement Division

https://www.sec.gov/newsroom/press-releases/2026-72-sec-establishes-financial-reporting-accountin...
1•petethomas•8m ago•0 comments

Show HN: No-Bullshit CRM – Fast, simple and local

https://crm.cintracomunicacao.com.br/
1•danhdsss•11m ago•1 comments

Klaviyo Acquires Agency

https://techcrunch.com/2026/08/05/klaviyo-acquires-elias-torres-agency-in-full-circle-reunion-for...
1•krm01•11m ago•0 comments

Is Muse Code a Claude Code Killer?

https://trycodus.com/blog/muse-code-vs-claude-code-benchmarks
1•feryuk•11m ago•1 comments

The Nix sandbox is a hidden input

https://fzakaria.com/2026/07/30/the-nix-sandbox-is-a-hidden-input
2•birdculture•11m ago•0 comments

I have disabled NPM publishing on all projects that have been affected

https://twitter.com/jaredwray/status/2085084489408294921
2•trelane•12m ago•0 comments

The Knowledge Gap: what security awareness training achieves

https://safeinstinct.com/whitepapers/the-knowledge-gap-2026/
1•gabriel_b•14m ago•1 comments

Toast IDE Launches Standalone Alpha Mac App

https://github.com/paradise-runner/toast
1•dividedcomet•15m ago•1 comments

FDIC Floats Standard-Setting Body for Banks' Fintech Partners

https://news.bloomberglaw.com/banking-law/fdic-floats-standard-setting-body-for-banks-fintech-par...
1•petethomas•16m ago•0 comments

Cookies Became the Web's Memory

https://www.makonea.com/en-US/blog/how-cookies-became-the-web-s-memory
2•jdw64•16m ago•0 comments

Incentives Are for Losers

https://www.experimental-history.com/p/incentives-are-for-losers
2•dcminter•17m ago•0 comments

Ask HN: What do you think about Northstar-browser?

2•roschdal•20m ago•4 comments

NVMe polishes its specs, brings virtualization to locally attached SSDs

https://www.theregister.com/storage/2026/08/04/nvme-polishes-its-specs-brings-virtualization-to-l...
1•emptybits•21m ago•0 comments

Go: A more robust proposal process

https://github.com/golang/go/discussions/80580
1•fractorial•22m ago•0 comments

AI moderators won't run discovery interviews for another ten years

https://blog.zernote.com/ai-moderators-ten-years/
2•mironn•23m ago•0 comments

Show HN: Capy – A Git-style platform for managing your team's secrets

https://github.com/capysc/capy-cli
6•cvince•25m ago•3 comments

Traditional economics is wrong: Donald Trump has proved it

https://eastangliabylines.co.uk/business/economics/traditional-economics-is-wrong-donald-trump-ha...
2•SideburnsOfDoom•28m ago•0 comments

U.S. Cuts Ties with Organ Donor Group After Reports of Abuses

https://www.nytimes.com/2026/08/05/us/organ-donations-kentucky.html
2•JumpCrisscross•30m ago•0 comments

Classified cancer treatment research with parasites released after 60 years

2•yde_java•31m ago•0 comments

A probability grid of chain-of-thought, read through Boyd's OODA loop lens

https://adamsohn.com/reasoning-grid/
1•dataviz1000•32m ago•0 comments

Notes from the AI Coding Transition

https://emschwartz.me/notes-from-the-ai-coding-transition/
1•emschwartz•33m ago•0 comments

Month on Vegan Diet Shifts Epigenetic Patterns Assoc with Aging and Inflammation

https://today.ucsd.edu/story/one-month-on-a-vegan-diet-shifts-epigenetic-patterns-associated-with...
3•littlexsparkee•33m ago•0 comments

Ambient Lighting on Your Mac

https://www.trylumn.xyz/
2•arkancharla•33m ago•0 comments

Le Monde's 100 Books of the Century

https://en.wikipedia.org/wiki/Le_Monde%27s_100_Books_of_the_Century
3•chistev•34m ago•1 comments

Why cloning an app with vibe coding is doomed to fail

https://livablesoftware.com/why-cloning-an-app-with-vibe-coding-fails/
3•softmodeling•35m ago•0 comments