frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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?

Encoding different messages at different video resolutions [video]

https://www.youtube.com/watch?v=UCBAqaT4SQc
1•exploraz•1m ago•0 comments

Taiwan Became the Most Perilous Geopolitical Chokepoint [video]

https://www.youtube.com/watch?v=lxmt7rz4DLQ
1•mooreds•1m ago•0 comments

Debt Has Always Been the Ruin of Great Powers. Is the U.S. Next?

https://www.wsj.com/politics/policy/debt-has-always-been-the-ruinof-great-powers-is-the-u-s-next-...
1•mooreds•1m ago•0 comments

The New El Niño Might Make 2027 the Hottest Year on Record

https://www.nytimes.com/2026/05/06/opinion/el-nino-climate.html
1•mooreds•2m ago•0 comments

The Buses Should Be Free

https://nicholasdecker.substack.com/p/the-buses-really-should-be-free
1•surprisetalk•2m ago•0 comments

Scientists Gave 'Aggressive' Fish Psychedelic Drugs. A Breakthrough Came Next

https://www.404media.co/fish-psilocybin-magic-mushrooms-study-psychedelics/
1•Brajeshwar•3m ago•0 comments

Cognitive Surrender – Addy Osmani

https://twitter.com/addyosmani/status/2052124873208799378
1•adrianthedev•3m ago•0 comments

Xfra AI

https://www.xfra.ai/
2•snickmy•4m ago•0 comments

TRE: Lightweight, robust, and efficient POSIX compliant regexp matching library

https://github.com/laurikari/tre/
1•klaussilveira•5m ago•0 comments

Ask HN: How do you deal with color blindness?

1•qrobit•5m ago•0 comments

From Buffon's Needle to Buffon's Noodle

https://mbmccoy.dev/posts/buffons-noodle/
1•_alternator_•5m ago•0 comments

The Axle

https://github.com/thansz137/asiyah-protocol/blob/main/axle.md
1•thansz•5m ago•1 comments

IODX, a compact notation for object trees and configs

https://iodx.org/
1•mindwarp•7m ago•0 comments

Bambu Lab Sent a Cease-and-Desist. The AGPL Might Send One Back [video]

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

Show HN: Transform Claude/Codex/Cursor sessions into high-value data assets

https://github.com/max-ng/datamoat
3•max93•7m ago•1 comments

Show HN: Download and open 3GPP specs – LTE, 5G, 6G from your Chrome side panel

https://chromewebstore.google.com/detail/3gpp-spec-manager/jeekjphpkmdlnocgcemdoalpfehmmacg
1•tughvn•8m ago•1 comments

AI for Bio has a Fuzzy API problem

https://ankitg.me/blog/2026/05/04/fuzzy_api.html
1•laserson•8m ago•0 comments

Automating Hermitage to see how transactions differ in MySQL and MariaDB

https://theconsensus.dev/p/2026/05/02/automating-hermitage.html
2•eatonphil•9m ago•1 comments

Vibe-code on Mac mini from anywhere, anything

https://kushagra.dev/blog/vibecoding-on-mac-mini-from-anywhere/
1•chinchang•13m ago•0 comments

Child marriages plunged when girls stayed in school in Nigeria

https://www.nature.com/articles/d41586-026-00796-2
2•surprisetalk•17m ago•0 comments

Claude for Financial Services

https://github.com/anthropics/financial-services
1•srikanth235•17m ago•0 comments

A small object past Pluto may have a thin atmosphere

https://www.sciencenews.org/article/atmosphere-small-object-past-pluto
2•gmays•18m ago•0 comments

What would make an academic AI assistant trustworthy for students?

https://github.com/DavidHavoc/openworkers
1•dvdhvc•19m ago•1 comments

Two Maps, One Domain

https://docs.eventsourcingdb.io/blog/2026/05/07/two-maps-one-domain/
1•goloroden•19m ago•0 comments

The Chinese Realtime Deepfake Software Powering Scams Around the World

https://www.404media.co/hello-boss-inside-the-chinese-realtime-deepfake-software-powering-scams-a...
1•tysone•20m ago•0 comments

Tests confirm tilapia in mackerel cans

https://www.bangkokpost.com/thailand/general/3250868/tests-confirm-tilapia-in-mackerel-cans
1•teleforce•21m ago•0 comments

What Causes Lightning? The Answer Keeps Getting More Interesting

https://www.quantamagazine.org/what-causes-lightning-the-answer-keeps-getting-more-interesting-20...
2•Brajeshwar•22m ago•1 comments

Cloudflare responded to the "Copy Fail" Linux vulnerability

https://blog.cloudflare.com/copy-fail-linux-vulnerability-mitigation/
2•mobeigi•22m ago•0 comments

In OpenAI trial, former CTO: Altman sowed 'chaos,' distrust among top executives

https://www.reuters.com/legal/litigation/openai-trial-former-technology-chief-says-altman-sowed-c...
1•1vuio0pswjnm7•22m ago•0 comments

Ars Asks: Share your shell and show us your tricked-out terminals

https://arstechnica.com/information-technology/2026/05/ars-asks-share-your-shell-and-show-us-your...
1•duxup•23m ago•0 comments