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?

As Anthropic suspends access to new models, India debates its AI future

https://techcrunch.com/2026/06/13/as-anthropic-suspends-access-to-new-models-india-debates-its-ai...
2•saikatsg•3m ago•0 comments

I'm Willing to Give Our Alien Overlords a Second Chance

https://www.mcsweeneys.net/articles/im-willing-to-give-our-alien-overlords-a-second-chance
1•MarlonPro•4m ago•0 comments

Start at the Watercooler

https://marginpoints.substack.com/p/start-at-the-watercooler
1•historian1066•4m ago•0 comments

Fine Tuning a Tiny Local LLM to Categorize Questions

https://www.teachmecoolstuff.com/viewarticle/fine-tuning-a-local-llm-to-categorize-questions
1•dev-experiments•5m ago•0 comments

SpaceX Stock Plunge Wipes Out $600B After Cursor Deal Spooks Investors

https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-afte...
1•ortusdux•6m ago•1 comments

I switched to light mode and I haven't been happier

https://blog.shtfn.xyz/posts/i-switched-to-light-mode-and-i-havent-been-happier/
1•BoboDupla•7m ago•0 comments

offset_of! slices

https://bal-e.org/blog/2026/offset-of-slices/
1•g0xA52A2A•8m ago•0 comments

Show HN: The AI App That Does the Work

https://runner.now/download/
1•kalashvasaniya•10m ago•0 comments

Position: Coding Benchmarks Are Misaligned with Agentic Software Engineering

https://arxiv.org/abs/2606.17799
1•popey•10m ago•0 comments

NPM attack targets Zapier and security tool browser extensions

https://opensourcemalware.com/blog/mastra-npm-malware
4•6mile•11m ago•1 comments

The Wholesale Plagiarism of Obscure Sorrows

https://waxy.org/2026/06/the-wholesale-plagiarism-of-obscure-sorrows/
2•latexr•13m ago•0 comments

Agentbrowse: Drive any website from the terminal, built for AI coding agents

https://www.npmjs.com/package/agentbrowse
1•mandarwagh•16m ago•0 comments

Ask HN: Languages in the Age of AI

1•HeyLaughingBoy•16m ago•1 comments

Medical AI scores high on exams but stumbles on real patient care

https://www.medicaleconomics.com/view/medical-ai-scores-high-on-exams-but-stumbles-on-real-patien...
1•SVI•20m ago•0 comments

The Great Intermediary Panic

https://www.minid.net/2013/1/23/the-great-intermediary-panic
1•meerita•21m ago•0 comments

The Algorithm California Said Didn't Exist

https://reclaimthenet.org/the-algorithm-california-said-didnt-exist
1•Cider9986•23m ago•0 comments

Longevity medicine's do-or-die moment

https://www.axios.com/2026/06/18/longevity-medicine-critical-moment
1•evo_9•23m ago•0 comments

Distro Fighter

https://distrofighter.com/
1•Wingy•23m ago•0 comments

Show HN: Self-Hostable Company Brain

https://www.npmjs.com/package/@connectai/selfhost
1•jthorare•24m ago•1 comments

Oligarchy is worse than you think

https://www.youtube.com/watch?v=4S25FfbFw4M
1•penguin_booze•24m ago•0 comments

Self-Improving Agents Still Need Humans

https://goose-docs.ai/blog/2026/06/17/self-improving-agents-need-humans/
2•dosinga•24m ago•0 comments

Why Meta Suddenly Loves the Kids Online Safety Act

https://reclaimthenet.org/why-meta-suddenly-loves-the-kids-online-safety-act
6•Cider9986•25m ago•0 comments

The Increasing Scarcity of Helium [2015]

https://priceonomics.com/the-increasing-scarcity-of-helium/
2•bookofjoe•26m ago•0 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
2•amaldavid•26m ago•0 comments

Mars Is Spending Millions to Give M&M's a MAHA Makeover

https://www.wsj.com/business/mars-is-spending-millions-to-give-m-ms-a-maha-makeover-2fa1bb88
1•Cider9986•26m ago•0 comments

Software is the only path to hardware

https://www.trackr.bar/
1•jonaskamner•27m ago•0 comments

Don't Blame Plunging Birthrates on Phones

https://www.nytimes.com/2026/06/18/opinion/iphones-birthrate-decline.html
1•xnx•27m ago•1 comments

The Interplanetary Sciences Program

https://www.relativityspace.com/interplanetary
1•amir•28m ago•0 comments

You don't understand, prices can't go down

https://geohot.github.io//blog/jekyll/update/2026/06/18/prices-cant-go-down.html
4•greyface-•29m ago•1 comments

Surprising Usefulness of Amazon's Quick Desktop

https://www.theregister.com/ai-and-ml/2026/06/18/committed-skeptic-finds-himself-warming-to-new-a...
2•macleginn•29m ago•0 comments