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?

Browsers are becoming more bloated

https://waspdev.com/articles/2026-08-28/browsers-are-becoming-more-bloated
1•senfiaj•56s ago•0 comments

AI Safety and Pacing the Frontier

https://eshumarneedi.com/2026/09/15/on-ai-safety-and-pacing.html
1•meetpateltech•1m ago•0 comments

Show HN: Cubespotting – A New Way to Learn

https://www.cubespotting.com/
1•npguy•2m ago•0 comments

Real Use Cases of Muse

https://musecases.netlify.app/
1•trulykp•2m ago•1 comments

Pyrefly v1.3: More configurability and composable tensor shapes

https://pyrefly.org/blog/v1.3/
1•ocamoss•4m ago•0 comments

Windows-focused fork of OpenUsage for tracking AI coding subscription usage

https://github.com/ccycv/openusage
1•soltanov•7m ago•0 comments

Teleoperated Humans

https://www.jefftk.com/p/teleoperated-humans
1•mhb•9m ago•0 comments

APC AI-assisted framework for building audio (VST/AU) plugins

https://github.com/Noizefield/audio-plugin-coder
1•noizefield•9m ago•0 comments

OpenStreetMap fighting a large set of AI crawlers / scrapers

https://en.osm.town/@osm_tech/117273699871137554
3•pera•11m ago•0 comments

Kubernetes v1.37: DRA Updates

https://kubernetes.io/blog/2026/09/03/kubernetes-v1-37-dra-updates/
1•hnp9j9qtda•11m ago•0 comments

More U.S. Workers (27%) Fear Losing Their Jobs to Technology

https://news.gallup.com/poll/714368/workers-fear-losing-jobs-technology.aspx
1•giuliomagnifico•12m ago•0 comments

Show HN: Restarted – a 2026 remake of the classic 2015 startup generator

https://restarted.io/?z=477799172922
1•zxcvbn4038•12m ago•0 comments

Online hate researcher keeps hammering X despite deportation threat

https://arstechnica.com/tech-policy/2026/09/online-hate-researcher-keeps-hammering-x-despite-depo...
1•rbanffy•13m ago•0 comments

.NET MVC Recommended Resources

https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/recommended-resources-for-mvc
1•Brysonbw•13m ago•0 comments

Domain Coloring

https://www.algorithm-archive.org/contents/domain_coloring/domain_coloring.html
1•vismit2000•15m ago•0 comments

Bums in Seats Used to Win

https://mihai.dinculescu.dev/posts/bums-in-seats-used-to-win/
1•faithraven•16m ago•0 comments

GPUI-CE: A GPU-Accelerated UI Framework for Rust by the makers of Zed

https://gpui-ce.github.io
1•sagacity•16m ago•0 comments

Apple iPhone Duo makes developers think in folds

https://www.theregister.com/devops/2026/09/15/apple-iphone-duo-makes-developers-think-in-folds/52...
1•joebuckwilliams•18m ago•0 comments

Tell the speakers that you liked their talks

https://ohhelloana.blog/tell-the-speakers/
1•whisper2020•18m ago•0 comments

25 Years of Mass Surveillance Is Enough

https://www.schneier.com/blog/archives/2026/09/25-years-of-mass-surveillance-is-enough.html
4•iamnothere•20m ago•1 comments

Do you still read the code?

https://zanlib.dev/blog/do-you-still-read-the-code/
3•wofo•23m ago•1 comments

Jalapeño Shows Power of LLMs for Chip Design

https://spectrum.ieee.org/llms-for-chip-design
3•rbanffy•24m ago•0 comments

Representing application state using SQLite

https://world.hey.com/apetrov/representing-application-state-using-sqlite-b9875b47
1•apetrov•24m ago•0 comments

When Google Cuts Off Access: Poland and the World

https://dossier.reasoner.pl/artykul/
3•marekfocus•25m ago•0 comments

Golden Nerves

https://sites.google.com/view/golden-nerves/
1•parydaws•25m ago•0 comments

Ask HN: How do you prevent sensitive data from leaking through debugging tools?

1•Securelytixdev•28m ago•0 comments

IndieRoadmaps – a simple roadmap builder for indie hacker

https://indieroadmaps.com
1•pho3n1x•31m ago•1 comments

FloorPoll – live polls your audience joins in one tap

https://floorpoll.app/
1•tshrove•31m ago•0 comments

DotNet Security Cheat Sheet

https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html
1•Brysonbw•33m ago•0 comments

I Go To The Cloud: A tour in Hetzner's data center [video]

https://www.youtube.com/watch?v=i5GTwBTCQJI
1•redbell•34m ago•0 comments