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?

A DIY Temperature Controlled Incubator (Or just drill a hole in a mini-fridge)

https://chillphysicsenjoyer.substack.com/p/a-diy-temperature-controlled-incubator
1•crescit_eundo•19s ago•0 comments

Himalaya – CLI to Manage Emails

https://github.com/pimalaya/himalaya
1•amai•38s ago•0 comments

Fotolista

https://fotolista.es/
1•kumy•1m ago•1 comments

I Believe in You (2015)

https://creativeleadership.com/cl/i-believe-in-you
1•herbertl•1m ago•0 comments

Invisible Magic Number

https://en.wikipedia.org/wiki/Byte_order_mark
1•interweb•1m ago•0 comments

Made by Human, Not by Gen-AI

https://www.by-human.net/
1•monax•2m ago•0 comments

Google Search on Firefox Without AI

https://chsxf.dev/2026/07/27/18-firefox-setting-up-google-search-without-ai.html
1•speckx•3m ago•0 comments

EU Opens Call for Creation of Local AI Gigafactories

https://www.wsj.com/world/europe/eu-opens-call-for-creation-of-local-ai-gigafactories-c286213d
2•JumpCrisscross•3m ago•0 comments

Habits of Highly Overrated People (2013)

https://daedtech.com/the-7-habits-of-highly-overrated-people/
2•downbad_•4m ago•0 comments

GNU Hyperbole Implicit Buttons: Build Your Hyperverse

https://www.chiply.dev/post-hyperbole-implicit-buttons
2•birdculture•5m ago•0 comments

Path of Exile 2: Shaders and Device Removed Issues Fixed [video]

https://www.youtube.com/watch?v=XDEJLOHcdWw
1•ioasuncvinvaer•7m ago•0 comments

6G ISAC mobile network towers will map human movement in real time

https://www.nature.com/articles/d42473-025-00379-1
1•transpute•8m ago•0 comments

Show HN: Free career tools that show how recruiters read your resume

https://heyresume.co
1•not_wowinter13•9m ago•0 comments

Measuring Is Not Enough Anymore

https://fi-le.net/evals/
2•lukaspetersson•9m ago•0 comments

Digital sovereignty is real in Europe. The UK? Not so much

https://www.theregister.com/columnists/2026/07/27/digital-sovereignty-is-real-in-europe-the-uk-no...
4•beardyw•14m ago•0 comments

Open source project fools AI scrapers with poisoned font

https://www.theregister.com/ai-and-ml/2026/07/30/open-source-project-fools-ai-scrapers-with-poiso...
2•Bender•15m ago•1 comments

A16Z Hires Leopold Aschenbrenner

https://twitter.com/MollySOShea/status/2082874585146630362
1•abhishekdev•16m ago•0 comments

Building a Global Sound Through Afrobeats

https://medium.com/theentertainmentbreakdown/westcoast-wind-building-a-global-sound-through-afrob...
1•raynchad•16m ago•0 comments

From Junk Work to Judgment Work: What AI Should Change

https://www.aiexperts.com/blog/junk-work-to-judgment-work
1•lucaserb•18m ago•0 comments

Winamp Plans Comeback with New Deezer Partnership

https://www.cnet.com/tech/winamp-plans-comeback-with-new-deezer-partnership/
1•speckx•18m ago•1 comments

Key Changes (to the MCP Specification)

https://modelcontextprotocol.io/specification/2026-07-28/changelog
1•mbreese•19m ago•0 comments

The Amazon's lost civilisation: Hidden network of 20k structures

https://www.dailymail.com/sciencetech/article-16015869/Amazons-lost-civilisation-Hidden-network-s...
1•Bender•19m ago•0 comments

Should We Do More to Fight Lookism?

https://www.newyorker.com/culture/open-questions/should-we-do-more-to-fight-lookism
1•paulpauper•19m ago•0 comments

Cyanobacteria,the desert soil,and you (2012)

https://freethoughtblogs.com/pharyngula/2012/09/29/cyanobacteria-the-desert-soil-and-you/
1•joebig•19m ago•0 comments

The Anatomy of Cyber Risk

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4470871
1•paulpauper•20m ago•0 comments

Air-Gapped File Transfer via QR Codes

https://www.reddit.com/r/vibecoding/comments/1vawz1e/had_an_idea_for_air_gapped_file_transfer_abl...
3•skadamat•20m ago•1 comments

Why Animal Narrators Are All the Rage

https://www.theatlantic.com/books/2026/07/animal-narrator-fiction-paul-yoon-etna-book-review/688105/
1•paulpauper•20m ago•0 comments

Show HN: Aina – autotune an ONNX model and deploy it across an edge fleet

https://github.com/ElhamBadri2411/aina
2•e_badri•20m ago•0 comments

Bryan Johnson confesses he may have taken this whole longevity thing too far

https://www.dailymail.com/sciencetech/article-16016355/Biohacker-Bryan-Johnson-longevity-thing-fa...
2•Bender•21m ago•1 comments

Why prompt injection is still possible in LLM applications

https://pantsyr.dev/blog/why-prompt-injection-is-still-possible-in-llm-applications/
1•nanoparticle•22m ago•0 comments