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?

TreeTrek – A raw Git repository viewer web app

https://repo.autonoma.ca/treetrek
1•maxloh•1m ago•0 comments

Why solid-state batteries keep short-circuiting

https://news.mit.edu/2026/why-solid-state-batteries-keep-short-circuiting-0325
1•hhs•3m ago•0 comments

Trump Has Detained the Parents of More Than 11,000 U.S. Citizen Kids

https://www.propublica.org/article/trump-family-deportations-ice-citizen-kids
2•tempodox•4m ago•0 comments

Roman Catholic Churches See a Surge of New Converts

https://www.nytimes.com/2026/03/26/us/catholics-converts.html
1•johntfella•6m ago•0 comments

The Decadelong Feud Shaping the Future of AI

https://www.wsj.com/tech/ai/the-decadelong-feud-shaping-the-future-of-ai-7075acde
1•danielcampos93•9m ago•0 comments

RimWorld: A sci-fi colony SIM driven by an intelligent AI storyteller

https://store.steampowered.com/app/294100/RimWorld/
1•doener•9m ago•0 comments

Why AI Companies Want to Take Control of Your Computer

https://nymag.com/intelligencer/article/why-ai-agents-anthropic-claude-want-to-take-control-of-yo...
1•tempodox•12m ago•0 comments

We hold the key to the universe, and we turned it into a casino

https://seangong.substack.com/p/we-hold-the-key-to-the-universe-and
5•Entropnt•12m ago•0 comments

Sealing Paper Packaging Without Adhesives

https://www.fraunhofer.de/en/press/research-news/2026/march-2026/sealing-paper-packaging-without-...
1•gnabgib•13m ago•0 comments

Why exposing young children to AI content could have irreversible consequences

https://theconversation.com/why-exposing-young-children-to-ai-content-could-have-irreversible-con...
1•tempodox•14m ago•0 comments

RAM prices are plummeting after OpenAI failed to fulfill its commitment

https://twitter.com/rdd147/status/2037956117620482417
2•mirzap•16m ago•1 comments

NASA scientist backs evidence of non-human intelligence in Earth's skies

https://www.dailymail.co.uk/sciencetech/article-15677677/nasa-scientist-evidence-nonhuman-intelli...
1•SilentM68•17m ago•0 comments

From 300KB to 69KB per Token: How LLM Architectures Solve the KV Cache Problem

https://news.future-shock.ai/the-weight-of-remembering/
2•future-shock-ai•22m ago•0 comments

Harvests and food prices at risk as Iran war triggers global fertiliser crunch

https://www.independent.co.uk/news/world/middle-east/global-fertiliser-shortage-iran-war-food-pri...
2•measurablefunc•29m ago•0 comments

Why mathematicians are boycotting their biggest conference

https://www.scientificamerican.com/article/why-mathematicians-are-boycotting-their-biggest-confer...
10•nickcotter•35m ago•1 comments

Mathematics Is All You Need

https://zenodo.org/records/19080172
3•vinhnx•38m ago•1 comments

Carl Schmitt in Miami

https://thecritic.co.uk/carl-schmitt-in-miami/
1•paulpauper•40m ago•0 comments

How Many AA Batteries Does It Take to Power a PC Setup? [video]

https://www.youtube.com/watch?v=U5lskFXDbWs
3•gnabgib•41m ago•0 comments

Caching algorithms without knowing how they work

https://blog.autorouting.com/p/caching-algorithms-without-knowing
2•juanpabloaj•43m ago•1 comments

Will This 'Miracle' Battery Change Your Mind About EVs?

https://www.wsj.com/lifestyle/cars/donut-lab-solid-state-battery-ssb-ev-4e6ad966
1•NN88•47m ago•1 comments

Solving the Strait of Hormuz Blockage

https://www.austinvernon.site/blog/thestrait.html
3•paulpauper•47m ago•0 comments

Airfare Is Just the Beginning

https://www.theatlantic.com/newsletters/2026/03/expensive-plane-tickets-oil-iran/686604/
8•paulpauper•48m ago•1 comments

Stop picking my Go version for me

https://blog.howardjohn.info/posts/go-mod-version/
1•ingve•49m ago•0 comments

Show HN: EnterpriseFizzBuzz – 622K lines of production-grade FizzBuzz

https://github.com/Elijah-J/EnterpriseFizzBuzz
2•CodeIsMyFetish•53m ago•1 comments

AI Perfected Chess. Humans Made It Unpredictable Again

https://www.bloomberg.com/news/articles/2026-03-27/ai-changed-chess-grandmasters-now-win-with-unp...
4•GMoromisato•57m ago•1 comments

Show HN: Windows 95–style Weather App for iPhone

https://apps.apple.com/us/app/weather-exe/id6761195944
1•web3rb•57m ago•0 comments

Intel Core Ultra Series 3 VPro: 18A AI PCs Debut with Dtect Security Updates

https://hothardware.com/news/intel-unveils-core-ultra-series-3-vpro
1•rbanffy•1h ago•0 comments

Goldman Sachs now reckons that oil could take out the 2008 record of $147

https://www.ft.com/content/360ca227-4d2a-41a4-a05f-41baedc0f7d2
8•bookofjoe•1h ago•1 comments

Causality optional? Testing the "indefinite causal order" superposition

https://arstechnica.com/science/2026/03/getting-formal-about-quantum-mechanics-lack-of-causality/
1•rbanffy•1h ago•0 comments

Show HN: Drag-to-Reveal Before/After Slider Component for React/Next.js

1•doanything_ai•1h ago•2 comments