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?

Failfs

https://docs.kernel.org/next/filesystems/failfs.html
1•PaulHoule•1m ago•0 comments

Backpropagation step by step: the forward and backward pass

https://fremaconsulting.ch/blog/backpropagation
1•tohms•1m ago•1 comments

ARP Tell your network to explain itself

https://benjcal.space/blog/arp-tell-your-network-to-explain-itself/
1•birdculture•1m ago•0 comments

Paradise Lost, Diffed

https://quuxplusone.github.io/blog/2026/10/17/paradise-lost-diffed/
1•ibobev•2m ago•0 comments

Composite objects and C++26 the std:polymorphic type

https://mariusbancila.ro/blog/2026/10/18/composite-objects-and-cpp26-the-stdpolymorphic-type/
1•ibobev•2m ago•0 comments

The advantages of mobile Linux over AOSP

https://amosbbatto.wordpress.com/2026/10/19/the-advantages-of-mobile-linux-over-aosp/
1•amosbatto•2m ago•1 comments

The Problem with C++ Safety (Part 1): Why "It Works" Isn't Good Enough

https://www.modernescpp.com/index.php/cpp-and-memory-safety-part-1/
1•ibobev•3m ago•0 comments

Elizabeth Holmes Tricked Wired–and Everyone Else

https://www.wired.com/story/how-elizabeth-holmes-tricked-wired-and-everyone-else/
1•aray07•3m ago•0 comments

Migrations turn code itself into state

https://github.com/powertime-org/pgdeclare
1•powertime•4m ago•1 comments

Spending 10 months building the most human-like chess bot

https://mbuffett.com/posts/most-human-chess-bot
1•marcusbuffett•5m ago•1 comments

The Code Multiplexer Universe

https://hem.so/multiplexers
1•hodanli•8m ago•0 comments

ADHD, autism and the sensory challenges hidden in everyday clothes

https://www.bbc.com/news/articles/cmkge3q5p2gqo
1•bookofjoe•8m ago•1 comments

Show HN: Driftwatch – breaking-change alerts for the third-party APIs you call

https://driftwatch.et
1•asgerami•9m ago•0 comments

Tom Kincaid: PostgreSQL 19: What Changed, What Matters, and What to Test Now

https://www.enterprisedb.com/blog/postgresql-19-what-changed-what-matters-and-what-test-now
1•hncbw02z5a•10m ago•0 comments

Muse by Meta Terms of Use: What a Regular User Needs to Know

https://lucasaguiar.xyz/posts/muse-meta-termos-de-uso-problemas-responsabilidade/
1•isfttr•10m ago•0 comments

Milos Raonic: Wimbledon finalist to investment banker at Goldman Sachs

https://www.thetimes.com/sport/tennis/article/milos-raonic-andy-murray-goldman-sachs-2wqdm8xgl
1•vismit2000•11m ago•0 comments

One Big Text File – Your entire life in one text file

https://obtf.ru/en/
1•eustoria•14m ago•0 comments

StreetComplete v64.0 with iOS Support Released

https://github.com/streetcomplete/StreetComplete/releases/tag/v64.0
1•mfsch•14m ago•0 comments

ImageFlow – a Photoshop-class image editor in the browser

https://imageflow.dev/
1•eustoria•15m ago•0 comments

TP-Link and Key Tronic Sign Letter of Intent to Bring Router Assembly to the US

https://www.businesswire.com/news/home/20261019354252/en/TP-Link-Systems-Inc.-and-Key-Tronic-Sign...
2•kotaKat•15m ago•0 comments

Show HN: Destruction Therapy – a bottle-smashing physics sandbox in the browser

https://drypage.app/game/
1•KegelHero•16m ago•0 comments

AI Runs into Its Next Big Obstacle: Insurance

https://www.wsj.com/tech/ai/ai-runs-into-its-next-big-obstacle-insurance-8b2d4556
1•mooreds•16m ago•0 comments

Blanc Mail – A little less inbox

https://blanc.day/mail
1•eustoria•16m ago•0 comments

Show HN: Celorga – A portable re-implementation of Org for you and your agents

https://github.com/aviaviavi/celorga
2•aviaviavi•17m ago•0 comments

DeepSeek banned from U.S. federal civilian agencies under new DHS order

https://public-inspection.federalregister.gov/2026-21447.pdf
2•cmrdporcupine•19m ago•2 comments

Microsoft pulls out of UK's largest AI data centre

https://www.bbc.co.uk/news/articles/c9m26kl5y7epo
2•HatchedLake721•21m ago•0 comments

Indians' rights have been chipped away for decades

https://www.economist.com/asia/2026/10/18/indians-rights-have-been-chipped-away-for-decades
2•privacyishuman•23m ago•0 comments

Vendor Hooks in the Android Kernel

https://lwn.net/Articles/1098493
1•hn9zmdcaou•24m ago•0 comments

Components Are Dead; and Now for Something Different

https://www.wix.engineering/post/components-are-dead-and-now-for-something-completely-different
1•yoava•24m ago•0 comments

AI and the future of human made music (2023)

https://www.furious.com/perfect/artificialintelligencemusic.html
1•LichenStone•25m ago•1 comments