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

Text Is King

https://www.experimental-history.com/p/text-is-king
1•paulpauper•1m ago•0 comments

Making a small pipe organ from scratch (videos)

https://www.youtube.com/playlist?list=PLjL6UneA4BomqX3U2xt5tuRhWJ6KLWKJ2
1•afandian•2m ago•0 comments

AMD Ryzen AI Halo for AI Developers

https://www.amd.com/en/products/processors/consumer/ryzen-ai/ryzen-ai-halo.html
1•g42gregory•2m ago•0 comments

Na-ion batteries can charge faster than lithium with hard carbon electrodes

https://techxplore.com/news/2025-12-sodium-ion-batteries-faster-lithium.html
1•PaulHoule•3m ago•0 comments

The world entered a new era of 'water bankruptcy' with irreversible consequences

https://www.cnn.com/2026/01/20/climate/water-bankruptcy-drought-united-nations
1•coloneltcb•4m ago•0 comments

Show HN: Consensus for Side Effects

https://github.com/abokhalill/chr2
1•yousef06•5m ago•0 comments

Show HN: ChartKit – 14 React charts in 15KB, zero dependencies, LLM-ready

https://chartkit.dev/
1•toddynho•6m ago•0 comments

Show HN: Retain – A unified knowledge base for all your AI coding conversations

https://github.com/BayramAnnakov/retain
1•Bayram•8m ago•0 comments

XGo: = C * Go * Python * JavaScript and Scratch

https://xgo.dev/
1•jcbhmr•8m ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
1•_peregrine_•8m ago•0 comments

India-Europe 'mother of all deals' within reach as EU hints at breakthrough

https://economictimes.indiatimes.com/news/economy/foreign-trade/wef-davos-2026-india-eu-mother-of...
1•saubeidl•8m ago•0 comments

Entrepreneurship and Capital

https://deadneurons.substack.com/p/entrepreneurship-and-capital
1•nr378•10m ago•0 comments

Congress Imposes Public Utility Rules on UnitedHealth, CVS, and Cigna

https://www.thebignewsletter.com/p/boom-the-break-up-of-big-medicine
1•toomuchtodo•10m ago•0 comments

Blog Has Secrets

https://jordaneldredge.com/secrets/
1•speckx•13m ago•0 comments

AliSQL, a MySQL branch with a DuckDB storage engine

https://github.com/alibaba/AliSQL
1•pbowyer•13m ago•0 comments

Show HN: Automatically build sales playbook. For founders doing sales

1•Mrakermo•14m ago•0 comments

Show HN: DealGraph – an open, verifiable ledger of businesses for sale

https://github.com/jeffsosville/dealgraph
1•jsosville•14m ago•0 comments

One Year of Trump. The Time to Act Is Now, While We Still Can

https://www.nytimes.com/2026/01/18/opinion/trump-one-year-later.html
2•treadump•15m ago•1 comments

Apple to Revamp Siri as a Built-In iPhone, Mac Chatbot to Fend Off OpenAI

https://www.bloomberg.com/news/articles/2026-01-21/ios-27-apple-to-revamp-siri-as-built-in-iphone...
4•helsinkiandrew•15m ago•0 comments

Elon Musk's xAI Colossus 2 is nowhere near 1 gigawatt capacity

https://www.tomshardware.com/tech-industry/artificial-intelligence/elon-musks-xai-colossus-2-is-n...
1•doener•16m ago•0 comments

Mixedbread: How We Built Multimodal Late-Interaction at Billion Scale

https://www.mixedbread.com/blog/multimodal-late-interaction-billion-scale
2•ashvardanian•18m ago•0 comments

Software Willy Wonka

https://ricardoanderegg.com/posts/if-llms-replace-programmers-be-willy-wonka/
1•polyrand•19m ago•0 comments

How Cerebras AI Inference Chip Is Competing with Nvidia?

https://open.spotify.com/episode/48cbPZ539844DMi0kK1ADI
1•sindamnataraj•20m ago•0 comments

Show HN: Exploring structure in a 1D cellular automaton

https://github.com/arvatamas/The-Cosmic-Mirror
2•aaatamas•20m ago•0 comments

How Binary Dependencies Work Across Different Languages

https://vlad.website/how-binary-dependencies-work/
3•todsacerdoti•21m ago•0 comments

Show HN: Qwe – small, opinionated modal text editor

https://github.com/mitjafelicijan/qwe-editor
1•mitjafelicijan•21m ago•0 comments

LegalEagle: Elon Built a Child Porn Factory [video]

https://www.youtube.com/watch?v=TYNHYIX11Pc
3•Topfi•22m ago•0 comments

OpenAI API Logs: Unpatched Data Exfiltration

https://www.promptarmor.com/resources/openai-api-logs-unpatched-data-exfiltration
2•takira•22m ago•1 comments

Trump says reached Greenland deal framework with NATO, backs off Europe tariffs

https://www.cnbc.com/2026/01/21/trump-tariffs-nato-greenland-davos.html
3•belter•22m ago•2 comments

Magnetic Remote Control of Biology

https://www.nature.com/articles/d41586-026-00204-9
2•AndrewGYork•22m ago•1 comments