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•9mo 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•9mo 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 Be a Class Act

https://www.artofmanliness.com/character/behavior/25-ways-to-be-a-class-act/
1•jader201•35s ago•0 comments

Show HN: Hivewire – A news feed where you control your algorithm weights

https://hivewire.news
1•bchaps•2m ago•0 comments

SoCal man once stole a billionaire's identity, then he set his sights on surfers

https://www.latimes.com/california/story/2026-01-27/moundir-kamil-sentencing-fraud-scheme-surfers
1•PaulHoule•3m ago•0 comments

Re-Identification Risk vs. K-Anonymity

https://www.testingbranch.com/re_identification/
1•mpcsb•4m ago•0 comments

Attention Media ≠ Social Media

https://susam.net/attention-media-is-not-social-media.html
1•susam•4m ago•0 comments

Show HN: Intervu – Free, BYOK Interview Prep (Groq/Gemini/OpenAI)

https://www.intervu.cc/
1•viveknar•5m ago•0 comments

From churches to chatbots: How AI is fusing with religion

https://www.reuters.com/technology/ai-and-us/pulpits-chatbots-how-ai-is-fusing-with-religion-2026...
1•geox•7m ago•0 comments

The Economics of Noncompete Clauses

https://www.aeaweb.org/articles?id=10.1257/jep.20251457
2•bikenaga•8m ago•0 comments

OpenClaw Creator: Why 80% of Apps Will Disappear [video][yc]

https://www.youtube.com/watch?v=4uzGDAoNOZc
1•znq•8m ago•0 comments

Bring Your Own RAM is officially a prebuilt PC trend

https://www.pcworld.com/article/3051463/byo-ram-is-officially-a-prebuilt-pc-trend-and-it-raises-l...
2•giuliomagnifico•8m ago•0 comments

Anthropic Spoof Website and How Senior Developers Look for New Work

http://goldenencounters.org/
1•dogline•9m ago•0 comments

(Early Stage) Heterodox Analytical Processing Engine Utilizing Tinygrad

https://github.com/ronfriedhaber/autark
1•ronfriedhaber•10m ago•0 comments

Autonomous AI hacker to find actual exploits in your web apps

https://github.com/KeygraphHQ/shannon
2•koqoo•10m ago•2 comments

Are You Making Money from AI?

1•koqoo•12m ago•3 comments

The First Sodium-Ion Battery EV Is a Winter Range Monster

https://insideevs.com/news/786509/catl-changan-worlds-first-sodium-ion-battery-ev/
3•andrewjneumann•13m ago•0 comments

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/index.html
3•birdculture•17m ago•0 comments

Why AI Agents Won't Replace Software Engineers [video]

https://www.youtube.com/watch?v=PuM1Sp934nI
1•andrewjneumann•18m ago•1 comments

Boot Sharc+ DSP over UART

https://embd.cc/boot-sharc-dsp-over-uart
2•js216•20m ago•0 comments

Show HN: I created a Mars colony RPG based on Kim Stanley Robinson's Mars books

https://underhillgame.com/
3•ariaalam•20m ago•1 comments

Show HN: Goke, simple, type safe elegant command line framework

https://github.com/remorses/goke
1•xmorse•20m ago•0 comments

Show HN: Bore – A tunneling tool with TUI traffic inspection

https://github.com/Aditya-ds-1806/bore
2•aditya_ds_1806•23m ago•0 comments

Magellink – Accelerate your discovery by parallelizing experiments

https://magellink.com/
1•tobessebot•23m ago•0 comments

Would you use a CLI tool that turns English into local automation workflows?

1•losalah•26m ago•1 comments

San Francisco's pro-billionaire march draws dozens

https://techcrunch.com/2026/02/08/san-franciscos-pro-billionaire-march-draws-dozens/
7•SilverElfin•27m ago•2 comments

I Let an AI Agent Migrate My Server While I Ate Dinner (Unsupervised)

https://michaelchinen.com/2026/02/08/after-15-years-aws-started-charging-me-for-my-ec2-website-an...
1•mchinen•28m ago•0 comments

explain xkcd

https://www.explainxkcd.com/wiki/index.php/Main_Page
1•basilikum•28m ago•0 comments

The Limits and Consequences of Population Policy: Evidence from China's Campaign

https://direct.mit.edu/rest/article-abstract/doi/10.1162/REST.a.1695/135194/The-Limits-and-Conseq...
3•paulpauper•29m ago•0 comments

Trump's Greenland Threats Spill into Another Danish Territory

https://www.nytimes.com/2026/02/07/world/europe/trumps-greenland-threats-spill-into-another-danis...
3•paulpauper•29m ago•0 comments

Chinese scientists build powerful truck-sized microwave weapon

https://newatlas.com/military/starlink-smasher-microwave/
4•speckx•30m ago•1 comments

Bitcoin company helped draft law to enable libertarian Caribbean development

https://www.ft.com/content/50c2f8e0-a0a4-4433-805d-46e9e0345d4a
3•paulpauper•30m ago•0 comments