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?

Jython

https://en.wikipedia.org/wiki/Jython
1•skogstokig•1m ago•0 comments

The AI backlash is only getting started

https://www.economist.com/leaders/2026/06/25/the-ai-backlash-is-only-getting-started
1•edward•1m ago•0 comments

Open-source machine identity security (IAM roles outnumber humans 82:1)

https://github.com/josephtui767-cloud/MII
1•josephtui•2m ago•0 comments

AI hiring algorithms reject Black, Asian job seekers at higher rates

https://www.theregister.com/ai-ml/2026/05/27/ai-hiring-algorithms-reject-black-asian-job-seekers-...
1•ohjeez•3m ago•0 comments

Hyper Text Coffee Pot Control Protocol

https://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol
2•sans_souse•4m ago•0 comments

Show HN: Yet Another Confidence Calculator

https://confidence.nickyreinert.de/
1•y42•4m ago•0 comments

Claude Tag: How to Build Your Own Slack AI Agent

https://www.arcade.dev/blog/claude-tag-build-slack-ai-agent/
1•manveerc•5m ago•0 comments

Show HN: Glasshouse – A privacy-first news app with on-device personalization

https://www.roserug.co/products/glasshouse
1•roserugco•5m ago•0 comments

Show your hands honor for the power they bring you

https://aresluna.org/show-your-hands-honor/
1•matthberg•7m ago•0 comments

ParallelKernelBench: Can LLMs write fast multi-GPU kernels?

https://github.com/togethercomputer/ParallelKernelBench
1•matt_d•7m ago•0 comments

Apple Explains Why It Raised Prices on These 14 Products Today

https://www.macrumors.com/2026/06/25/apple-explains-why-it-raised-prices/
1•tosh•8m ago•0 comments

VibeToContent: Marketing Content for Builders

https://vibetocontent.com/
1•javierluraschi•8m ago•0 comments

The biggest problems in using AI

https://shearer.org/research/addressing-biggest-problems-in-ai/
1•smartmic•9m ago•0 comments

Em Dash Counter: A browser extension that counts em dashes

https://mattnite.net/blog/em-dash-counter/
1•speckx•9m ago•0 comments

Linear elastic caching reduced Spanner's memory use by 15.5%

https://research.google/blog/optimizing-cloud-economics-with-linear-elastic-caching/
1•p_stuart82•9m ago•0 comments

Our $8M Seed Round and Open Beta

https://www.sazabi.com/blog/seed-round
1•shcallaway•10m ago•0 comments

The AI-Tutor Revolution That Wasn't

https://www.theatlantic.com/ideas/2026/06/ai-tutor-education-human-investment/687678/
3•Brajeshwar•10m ago•1 comments

Apple's Skating in the Right Direction, but the Puck Is Still Ahead

https://reviews.ofb.biz/safari/article/1429.html
1•trbutler•12m ago•0 comments

I Fine-Tuned an AI Model on My Mac for Less Than a Cent, and You Can Too

https://medium.com/@deshpandetanmay/i-fine-tuned-an-ai-model-on-my-mac-for-less-than-a-cent-and-y...
1•tanmaydesh5189•13m ago•0 comments

Garry Tan: Put a Leash on Your YC Founders

https://twitter.com/looksmaxxvc/status/2069967113947885839
4•mellosouls•15m ago•1 comments

Why electric car batteries last much longer than researchers thought

https://www.sciencenorway.no/battery-cars-and-traffic-transport/electric-car-batteries-last-much-...
2•dxs•16m ago•0 comments

InfiniteDiffusion: A new approach to infinite generation with diffusion models

https://twitter.com/xandurglar/status/2070179038417821777
1•LorenDB•18m ago•1 comments

Using Claude Code makes you a worse developer, but a slightly better manager

https://evgeniipendragon.com/posts/managing-claude-code-made-me-a-better-tech-lead/
1•speckx•19m ago•0 comments

Maybe "is AI a bubble?" is the wrong question

https://emilesilvis.com/maybe-is-ai-a-bubble-is-the-wrong-question.html
2•gmays•20m ago•3 comments

Apple to Skip High-End M6 Mac Chips in Favor of AI-Focused M7 Line

https://www.bloomberg.com/news/articles/2026-06-25/apple-to-skip-high-end-m6-mac-chips-to-launch-...
5•mfiguiere•22m ago•0 comments

Feistel Cipher

https://en.wikipedia.org/wiki/Feistel_cipher
1•tosh•23m ago•0 comments

Using the Red Pitaya STEMlab 125-14 Pro Gen2 as an SDR in GNU Radio

https://www.controlpaths.com/2026/06/21/red-pitaya-stemlab-sdr-gnuradio/
1•hasheddan•24m ago•0 comments

Ask HN: Quickbooks Alternative?

2•bix6•25m ago•0 comments

The AI Data-Center Boom Is Sparking a Third Wave of Inflation

https://www.wsj.com/economy/the-data-center-boom-is-sparking-a-third-wave-of-inflation-926adc6e
4•gmays•25m ago•0 comments

CSS on the ESP32

https://hackaday.com/2026/06/25/css-on-the-esp32/
2•arbayi•27m ago•0 comments