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•10mo 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•10mo 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?

How to Kill the Code Review

https://www.latent.space/p/reviews-dead
1•swyx•50s ago•0 comments

Yahoo Scout Beta

https://scout.yahoo.com
1•broabprobe•56s ago•0 comments

CreeperGIT

https://git.creepernet.qzz.io
1•heckersdata•2m ago•0 comments

The Remaking of Thomas Mann

https://www.commonwealmagazine.org/thomas-mann-magic-mountain-jensen
1•benbreen•2m ago•0 comments

Code Corners: A platform-agnostic alternative to GitHub Corners

https://codecorners.rknight.me
1•rknightuk•5m ago•0 comments

Show HN: M8tes.ai – AI teammates that do your work

https://www.m8tes.ai/
1•JacobCreator•5m ago•0 comments

Prolonged U.S.-Iran conflict could trigger major energy shock in eurozone

https://nltimes.nl/2026/03/02/ing-prolonged-us-iran-conflict-trigger-major-energy-shock-eurozone
1•TechTechTech•6m ago•0 comments

Does the war on Iran prove it's time to quit oil for good?

https://www.euronews.com/2026/03/02/a-world-chained-to-fossil-fuels-does-the-war-on-iran-prove-it...
1•doener•10m ago•0 comments

The 185-Microsecond Type Hint

https://blog.sturdystatistics.com/posts/type_hint/
3•kianN•13m ago•1 comments

Welcome to My Virtual Office

https://valerii15298.github.io/
1•mooreds•14m ago•0 comments

Will AI Replace You?

https://candidate.perfectly.so/roast
1•lopespm•14m ago•0 comments

Show HN: ThinkFirst – The Anti-ChatGPT for Students

https://apps.apple.com/us/app/thinkfirst-ai-homework-help/id6759180853
1•alibasharat5•15m ago•0 comments

What to know about the Strait of Hormuz

https://apnews.com/article/strait-hormuz-iran-energy-war-5b60e82ef2fc68e2b43aa570a32404dd
1•mooreds•15m ago•0 comments

ToolMisuseBench: A deterministic benchmark for tool-augmented Agents

https://huggingface.co/datasets/sigdelakshey/ToolMisuseBench
1•akgitrepos•15m ago•2 comments

Deception, Lies, and Valve [video]

https://www.youtube.com/watch?v=13eiDhuvM6Y
1•streetfighter64•16m ago•0 comments

Music Streaming Economics: 6.9M Streams and a Full Cross‑Platform Payout Dataset

https://www.lackluster.org/support/
1•conner_bw•17m ago•0 comments

8th Wall is now open source

https://8thwall.org/
1•2001zhaozhao•18m ago•0 comments

Show HN: Drawbridge – Drop-In SSRF Protection for Python

https://github.com/tachyon-oss/drawbridge
1•logicx24•18m ago•0 comments

Show HN: Veread – A minimal RSS reader for web. No sign ups. No downloads

https://veread.com/
1•vasanthv•19m ago•0 comments

1 Dataset 100 Visualizations

https://100.datavizproject.com/
1•bookofjoe•19m ago•0 comments

Building a Software Career in an LLM World

https://sumnerevans.com/posts/software-engineering/building-swe-career-in-llm-world/
1•chilipepperhott•19m ago•0 comments

Ask HN: How are you preventing runaway LLM workflows in production?

1•HenryM12•21m ago•0 comments

Associated Press Announces It's Teaming Up with Kalshi Ahead of the Midterms

https://www.mediaite.com/media/news/ap-announces-its-teaming-up-with-prediction-market-site-kalsh...
1•terminalbraid•24m ago•0 comments

Why (and how) we built 3 AI agents into our product

https://getlago.com/blog/building-ai-is-hard
2•FinnLobsien•25m ago•0 comments

February 2026: Bitcoin fell 24%. Nothing in crypto infrastructure broke

https://thefutureofmoney.substack.com/p/the-monetary-blueprint-6-cryptos
2•futureofmoney•26m ago•0 comments

YCombodogpatchrental

1•gekahng•28m ago•0 comments

Only 526 AI tools are in the topM most-visited websites

https://airankings.co
2•chadlad101•28m ago•1 comments

Ask HN: How do you get better at coding agents?

3•twitchard•29m ago•0 comments

This Month in Ladybird – February 2026: Adopting Rust for LibJS

https://ladybird.org/newsletter/2026-02-28/
1•exploraz•29m ago•0 comments

Show HN: Vanilla JavaScript refinery simulator built to explain job to my kids

1•fuelingcurious•30m ago•0 comments