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?

Heisenbug

https://en.wikipedia.org/wiki/Heisenbug
1•green_biri•1m ago•0 comments

Markeplay – Run an online store with specialized AI agents

https://markeplay.channel.markedev.com/
1•dome0506•1m ago•0 comments

Towards formal verification: mbrotli and mzstd

https://m-compressors.github.io/2026/formal-verification-mbrotli-mzstd/
1•roliver•1m ago•0 comments

The Rheinmetall Curb Charger

https://www.rheinmetall.com/en/products/charging-infrastructure/curb-charger
1•robin_reala•1m ago•0 comments

Gnome Extension for getting windows list in Wayland

https://github.com/ickyicky/window-calls
1•ankitg12•1m ago•0 comments

Descent into the Computational Sublime

https://contraptions.venkateshrao.com/p/descent-into-the-computational-sublime
1•jger15•1m ago•0 comments

Together Compiler: Continual Compilation for AI Inference

https://www.together.ai/blog/together-compiler-continual-compilation-for-ai-inference
1•rerx•2m ago•0 comments

DisplaySwitcher

https://nebulasoftware.com/product/displayswitcher/
1•goldmineonlineh•2m ago•0 comments

Most AI apps learn about you on their own. exxperts learns with you

https://github.com/EXXETA/exxperts
1•alindnbrg•3m ago•0 comments

The True Story of Audion

https://www.panic.com/extras/audionstory/
1•signa11•4m ago•0 comments

Building a messenger without phone numbers: the hard problems

https://www.joinmorse.com/blog/messenger-without-phone-numbers
1•UserMark•4m ago•0 comments

Detecting signs of hypertension using wearable sensors

https://research.google/blog/detecting-signs-of-hypertension-using-wearable-sensors/
1•hjouneau•6m ago•0 comments

Show HN: Breath Harbor

https://breathharbor.com/tools
1•eatfreshapple•6m ago•0 comments

Lockdown Mode Bypassed in New iPhone Exploit

https://www.privacyguides.org/news/2026/11/06/lockdown-mode-bypassed-in-new-iphone-exploit/
1•DeepLogin•8m ago•0 comments

Missing Lessons about Life

https://sekor.eu.org/x/mem/
2•modinfo•12m ago•0 comments

Software Line Specialist

https://lovro-bikic.github.io/software-line-specialist/
2•signa11•13m ago•0 comments

Xenharmonic Wiki of Tuning Systems

https://en.xen.wiki/w/Main_Page
2•brudgers•14m ago•0 comments

Show HN: Rindraw – drawing and animation app for iPad, iPhone and Mac

https://rindraw.com/
2•sawirricardo•15m ago•0 comments

Linux-use – agent-first GUI control for Linux

https://javimosch.github.io/linux-use/
2•ankitg12•22m ago•0 comments

Firms told to publish salaries in job adverts ahead of new law

https://www.bbc.co.uk/news/articles/cmd9343z3zw2o
2•_27•24m ago•0 comments

NYSE Expands Network of Transfer Agents

https://x.com/NYSE/article/2117306527149125871/media/2117301041519525888
2•usacoder•31m ago•0 comments

Unraveling the complexity of climate change hidden underground

https://worldsensorium.com/what-lies-beneath-the-climate-story/
2•dnetesn•36m ago•0 comments

Anthropic is rapidly accelerating AI development amid slowdown calls

https://apnews.com/article/anthropic-metr-ai-claude-acceleration-9cf8c590ffc1abdb489179bdccc69c23
3•giuliomagnifico•36m ago•0 comments

Tesla to axe Cybertruck as Musk shifts focus to robotics and AI

https://www.ft.com/content/8ec923a8-a581-4995-a92c-c08e16bf2e98
3•frereubu•37m ago•3 comments

Branching Beyond Leonardo: The Evolution of Tree Architecture Theory

https://blue-continuum.com/branching-beyond-leonardo
1•dnetesn•37m ago•0 comments

Show HN: Black Pixel – 69-byte inverse of the Million Dollar Homepage

https://black-pixel-1x1.vercel.app
2•KINGOFTHESCREEN•38m ago•0 comments

Media manager that connects to your streaming services and connected speakers

https://www.music-assistant.io/
1•LelouBil•38m ago•0 comments

Homomorphic Encryption for Pseudonymization – privacy enabled data-sharing

https://belfortlabs.com/blog/smals-blind-pseudonymization
1•sambejk•38m ago•1 comments

The Docker group is root access, my agent used it to write to /etc.

https://jeena.net/notes/1497
2•jeena•39m ago•0 comments

Open Source Spotify client library

https://github.com/librespot-org/librespot
2•LelouBil•40m ago•0 comments