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?

AI Visibility Engineering Glossary – AEO, Geo, LLM Retrieval

https://axonsystem.net/en/glossary/
2•FrancescoTinti•49s ago•0 comments

Medieval Europe (in 23 minutes) [video]

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

Church Encoding, Parametricity, and the Yoneda Lemma

https://blog.wybxc.cc/blog/parametricity/
1•g0xA52A2A•11m ago•0 comments

Null Linux

https://github.com/Duck25543/Null-Linux
1•PvsLH102•13m ago•0 comments

Whimsical Animations

https://whimsy.joshwcomeau.com
1•vismit2000•14m ago•0 comments

Texas AG sues Meta over claims that WhatsApp doesn't provide end-to-end encrypt

https://arstechnica.com/security/2026/05/texas-ag-sues-meta-over-claims-that-whatsapp-doesnt-prov...
1•joozio•16m ago•0 comments

After Automation

https://every.to/p/after-automation
1•jibcage•24m ago•0 comments

Spanish Court Declines to Fine NordVPN over LaLiga Piracy Blocking Order

https://torrentfreak.com/spanish-court-declines-to-fine-nordvpn-over-laliga-piracy-blocking-order/
6•gslin•26m ago•0 comments

The Best Windows is Linux

https://lunduke.substack.com/p/the-best-windows-is-linux
2•gargan•32m ago•0 comments

The just-say-no engineer was a ZIRP phenomenon

https://www.seangoedecke.com/the-just-say-no-engineer-was-a-zirp-phenomenon/
1•vismit2000•33m ago•0 comments

High-Throughput Chips for LLMs

https://matx.com/
1•consumer451•35m ago•0 comments

Denuvo game cracked on day 1 of launch

https://pastebin.com/jQjvNrvA
2•sensanaty•36m ago•0 comments

Parsing IPv6 Addresses Crazily Fast with AVX-512

https://lemire.me/blog/2026/05/23/parsing-ipv6-addresses-crazily-fast-with-avx-512/
2•0xedb•36m ago•0 comments

Show HN: Brev – A frictionless Android note taking app

https://play.google.com/store/apps/details?id=com.shkurta.brev&hl=en_US
1•Klaudjo_shkurta•42m ago•0 comments

Layoffs Hitting Zalando?

https://old.reddit.com/r/cscareerquestionsEU/comments/1tkx5ll/layoffs_hitting_zalando/
2•theanonymousone•42m ago•0 comments

The International Space Station is leaking (again)

https://arstechnica.com/space/2026/05/uh-oh-the-international-space-station-is-leaking-again/
1•jnord•43m ago•0 comments

AI is getting pricey, but relief is coming, but not for you

https://www.theregister.com/ai-ml/2026/05/21/ai-is-getting-pricey-but-relief-is-coming-but-not-fo...
1•jnord•44m ago•1 comments

ExtendDB – The DynamoDB API, everywhere you run code

https://extenddb.org/
2•0xedb•46m ago•1 comments

New RFC Editor Website

https://www.rfc-editor.org/
1•jerleth•46m ago•0 comments

Former US execs plead guilty to aiding tech support scammers

https://www.bleepingcomputer.com/news/security/former-us-execs-plead-guilty-to-aiding-tech-suppor...
2•jnord•48m ago•0 comments

Rubish: A Unix shell written in pure Ruby

https://github.com/amatsuda/rubish
3•winebarrel•49m ago•0 comments

Ask HN: Is $300/HR too low these days for custom full stack?

3•noduerme•49m ago•0 comments

UK economic catastrophe unless it adapts to young people rewired by smartphones

https://news.sky.com/story/uk-faces-economic-catastrophe-unless-it-adapts-to-young-people-rewired...
3•austinallegro•53m ago•1 comments

Pip 26.1 Ships Dependency Cooldowns and Experimental Lockfile Support

https://www.infoq.com/news/2026/05/pip-261-dependency-cooldowns/
2•OutOfHere•1h ago•0 comments

Show HN: TruLayer – tracing, evals, and a control loop for production LLMs

https://trulayer.ai/
2•trulayer•1h ago•0 comments

The Software Coordination Tax: Why Your 40-Engineer Team Is Shipping Like 25

https://www.forbes.com/councils/forbestechcouncil/2026/05/20/the-software-coordination-tax-why-yo...
2•RyeCombinator•1h ago•0 comments

Exploring Ref Qualifiers in C++

https://meetingcpp.com/blog/items/Exploring-ref-qualifiers-in-Cpp.html
3•signa11•1h ago•0 comments

Why are there keys on my messenger app that I don't recognize

2•ttim•1h ago•0 comments

The uno reverse public license

https://github.com/Zuhaitz-dev/URPL
2•anticensor•1h ago•0 comments

Open-source living-room entertainment system, with pretty UI made in Electron

https://github.com/charnam/ClasmeraSpace
3•charnam•1h ago•2 comments