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?

The Decline and Fall of Rigor in Advanced Placement

https://www.educationnext.org/the-decline-and-fall-of-rigor-in-advanced-placement/
1•Michelangelo11•2m ago•0 comments

Bluefin Server

https://projectbluefin.io/server/
1•jcastro•2m ago•0 comments

The Tech Bros Who Bet on Fascism Lost. Don't Let the Internet Pay for It

https://www.techdirt.com/2026/11/05/the-tech-bros-who-bet-on-fascism-lost-dont-let-the-internet-p...
2•emschwartz•4m ago•0 comments

How two engineer side projects became the agent taking action inside Dropbox

https://dropbox.tech/machine-learning/how-two-engineer-side-projects-became-the-agent-taking-acti...
1•chengesu•4m ago•0 comments

Sniffing out the link between odor and disease

https://knowablemagazine.org/content/article/health-disease/2026/disease-sniffing-tests-get-close...
1•gmays•5m ago•0 comments

Republicans Learn X Is the Echo Chamber

https://www.404media.co/republicans-learn-x-is-an-echo-chamber/
4•ceejayoz•5m ago•0 comments

The New York Times sues Brave web browser for AI scraping and bypassing paywalls

https://www.theverge.com/tech/1024588/brave-lawsuit-ai-scraping-new-york-times
1•CharlesW•6m ago•0 comments

Brain-Scanning Hats Are a Privacy Nightmare

https://www.science.org/content/article/are-brain-scanning-hard-hats-safety-dream-or-privacy-nigh...
1•marojejian•6m ago•2 comments

The Russian Contrabass Balalaika [video]

https://www.youtube.com/watch?v=YtAWkLxXWTo
1•sebg•8m ago•0 comments

Michael Burry says Anthropic is 'betting its existence' on optimism

https://www.businessinsider.com/michael-burry-anthropic-ipo-outlook-ant-big-short-2026-11
1•mgh2•8m ago•0 comments

Gemini Omni 1.2 Flash now GA

https://cloud.google.com/blog/products/ai-machine-learning/gemini-omni-1-2-flash-generally-available
1•sshah03•9m ago•0 comments

Claude Now on Your Notch

https://Notcho.si
1•AmDab•9m ago•0 comments

Trying and Failing to Draw a Line Between Code and Art

https://em-tg.github.io/artcodesteam/
1•em-tg•11m ago•0 comments

Novartis confirms 9 reported cases of tumors in patients treated with Zolgensma

https://www.biospace.com/drug-development/novartis-confirms-9-reported-cases-of-tumors-in-patient...
1•randycupertino•12m ago•1 comments

Mathematical Exploration and Discovery at Scale

https://par.nsf.gov/servlets/purl/10716339
1•brandonb•12m ago•0 comments

Freedman's Paradox at Forty: A Practitioner's Guide to Variable Selection

https://www.tandfonline.com/doi/full/10.1080/00031305.2026.2742880
1•sebg•14m ago•0 comments

VibeSys on Trainium: Agents Build/Tune Qwen3.8 Serving Engines on AWS Trainium2

https://syfi.cs.washington.edu/blog/2026-11-04-vibesys-trainium/
1•matt_d•21m ago•0 comments

The Surf Communities Selling Man-Made Waves to Homeowners

https://www.wsj.com/real-estate/luxury-homes/artificial-wave-pools-residential-communities-a2aa4070
1•gmays•23m ago•0 comments

Bayesian Language Model Interpolation for Mobile Speech Input [pdf]

https://www.isca-archive.org/interspeech_2011/allauzen11_interspeech.pdf
1•brandonb•24m ago•0 comments

China Plans Broad AI Guardrails After Global Security Lapses

https://www.bloomberg.com/news/articles/2026-11-03/china-plans-broad-ai-guardrails-after-global-s...
2•reasonableklout•26m ago•0 comments

Confessions from Slopaholics Anonymous

https://thomasjiralerspong.substack.com/p/chasing-the-karpathy-peak
2•sashank_1509•26m ago•0 comments

Is There Football Now?

https://hayahora.futbol
1•opengrass•26m ago•0 comments

Hong Kong: Joshua Wong Gets Nearly 10 More Years in Prison

https://www.hrw.org/news/2026/11/05/hong-kong-joshua-wong-gets-nearly-10-more-years-in-prison
3•aliasxneo•29m ago•0 comments

AgentSight: System-wide AI agent profiling and monitoring with eBPF

https://eunomia.dev/agentsight/
2•rsyring•30m ago•0 comments

Dbt-lineage – see what a dbt change breaks, without a warehouse

https://github.com/sipemu/dbt-lineage-viewer
1•sipemu•31m ago•0 comments

Frameboy: Explore worlds in real-time streaming from cloud GPUs at up to 15 FPS

https://twitter.com/theworldlabs/status/2118424455873741028
2•dmarcos•31m ago•0 comments

Show HN: IndiePilot – find Reddit threads where people ask for what you sell

https://indiepilot.app
1•matek075•31m ago•0 comments

Black October: Lessons from the Downstream Breaches

https://scrty.io/black-october
1•mag00•32m ago•0 comments

E-Commerce in the "Second Cold War"

https://phenomenalworld.org/analysis/e-commerce-in-the-second-cold-war/
1•demonsthenes•35m ago•1 comments

Claude Code sends your email address to websites

https://github.com/anthropics/claude-code/issues/107757
87•motoroco•40m ago•15 comments