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 board game where you play an AI lab CEO racing to AGI [video]

https://www.youtube.com/watch?v=SXnxZuntM0w
1•pricepinner•12s ago•0 comments

How the U.S.'s biggest news union is fighting an AI onslaught

https://www.fastcompany.com/91637688/newsguild-jon-schleuss-ai-human-journalists
1•postalex•1m ago•0 comments

Doctors Once Prescribed 300k IU of Vitamin D, Here's What Happened [video]

https://www.youtube.com/watch?v=uxWARJ4s95Y
1•Bender•2m ago•0 comments

What the 'AI Torture Chamber' Debate Got Wrong About the Research

https://www.techpolicy.press/what-the-ai-torture-chamber-debate-got-wrong-about-the-research/
1•postalex•2m ago•0 comments

Can we license "vibe code" into Free Software?

https://fsfe.org/news/2026/news-20260825-01.en.html
1•smartmic•4m ago•0 comments

Microsoft is too big to live

https://pluralistic.net/2026/11/13/outlookpocalypse/#bright-line-test
3•only_in_america•4m ago•0 comments

Big tech is here to let us down

https://blog.jsweeting.me/big-tech-is-here-to-let-us-down
2•speckx•4m ago•0 comments

Complexity as an Evolutionary Trap

https://medium.com/@smoking2man/complexity-as-an-evolutionary-trap-from-the-extinction-of-the-din...
1•Aldus551•5m ago•0 comments

WhatsApp vs. NSO Group exploit analysis (from case files)

https://www.courtlistener.com/docket/16395340/741/45/whatsapp-inc-v-nso-group-technologies-limited/
1•l0kihardt•6m ago•0 comments

Trezor confirms crypto-stealing implants in three wallets, releases fix

https://www.bleepingcomputer.com/news/cryptocurrency/trezor-confirms-crypto-stealing-implants-in-...
1•sshah03•7m ago•0 comments

Developer shrank 2,600 lines of C into a six-line script, then lost sleep

https://www.theregister.com/software/2026/11/13/developer-cleverly-shrank-2600-lines-of-c-into-a-...
2•titusblair•8m ago•0 comments

Fixing a Dead Socket LGA 1851 Mainboard with a Resistor

https://hackaday.com/2026/11/13/fixing-a-dead-socket-lga-1851-mainboard-with-a-resistor/
1•titusblair•8m ago•0 comments

I asked Claude to build a game about Claude taking over the world

https://allow-always.fly.dev/
1•pavel_tri•9m ago•0 comments

AI escapes from containers faster than me – so what?

https://some-natalie.dev/blog/escapes-ai/
1•speckx•11m ago•0 comments

The supplements Huberman, Attia and six other health experts have in common

https://usefollowed.com/panels/supplements-health-experts-take
1•cgoodmac•12m ago•1 comments

Show HN: Search 12k n8n community nodes by what they do

https://workflownodes.vercel.app/
1•Estarossa•13m ago•0 comments

Gentlemail – Send and receive email on unlimited domains for $5/month

https://gentlemail.dev/
2•themx05•13m ago•0 comments

Here’s what happens if you put Tailscale in the firmware of an ESP32

https://www.reddit.com/r/esp32/s/6ainC8AGjr
1•Mattboxx•13m ago•1 comments

Commission takes new steps to prepare Europeans for growing crisis risks

https://civil-protection-humanitarian-aid.ec.europa.eu/news-stories/news/commission-takes-new-ste...
1•Bender•13m ago•0 comments

Run a large language model on your iPhone. No internet is needed

https://github.com/MiTLN/OwnOwl-iPhone
2•tarassenkov•13m ago•1 comments

If I Change My Opinion on Immutability, Kill Me

https://joshmoody.org/blog/immutability-by-default/
1•joshmoody24•15m ago•0 comments

Grep for Meaning

https://github.com/sfmqrb/gutcheck
1•sfmqrb•16m ago•0 comments

The Opportunivore's Dilemma

https://www.vqronline.org/essays/opportunivores-dilemma
1•NaOH•16m ago•0 comments

Mellonbot An AI agent that finds the root cause of server issues and fixes them

https://www.mellonbot.app
1•narekkaravarich•17m ago•0 comments

Show HN: Find the Best Countries and Cities to Live or Travel

https://my-next-spot.com/en
2•drma-tech•17m ago•0 comments

Nvidia and the World Without Jensen

https://newsletter.semianalysis.com/p/nvidia-and-the-world-without-jensen
4•devy•18m ago•0 comments

Replacing JNI with Project Panama FFM, Compact Object Headers, and TreeSHAP

https://www.reddit.com/r/java/comments/1xvdd0i/smile_720_on_java_25_replacing_jni_with_project/
1•haifeng•20m ago•0 comments

Your room can be as bright as the outdoors (2019)

https://www.benkuhn.net/lux/
1•mday404•20m ago•1 comments

Tang Nano 20K FPGA replaces chips on a TRS-80 CoCo 1/2 to make it a CoCo 3

https://hackaday.com/2026/11/12/upgrade-your-coco-the-modern-way/
3•andrewstuart•20m ago•0 comments

I Used to Be Excited About Software Conferences. AI KILLed That

https://medium.com/@badrbellaj/i-used-to-be-excited-about-software-conferences-not-so-much-anymor...
1•bellajbadr•20m ago•0 comments