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?

White House weighs Defense Production Act to expand US oil refining capacity

https://www.reuters.com/business/energy/white-house-weighs-how-use-defense-production-act-expand-...
1•geox•2m ago•0 comments

A2ABreak: Systematic Security Analysis of the A2A Protocol

https://arxiv.org/abs/2609.10871
1•sbulaev•8m ago•0 comments

Russian developers used Claude to build 'kamikaze' attack drone software

https://www.theguardian.com/world/2026/sep/12/ukraine-war-briefing-russian-developers-used-ai-to-...
2•warrenmiller•12m ago•0 comments

A Nix store is three functions

https://fzakaria.com/2026/09/11/a-nix-store-is-three-functions
1•Tomte•12m ago•0 comments

Hearts of Iron IV, Part I: Operational Art

https://acoup.blog/2026/09/11/teaching-paradox-hearts-of-iron-iv-part-i-operational-art/
1•Tomte•13m ago•0 comments

Show HN: A high-performance, all-in-one extension for managing tabs

https://chromewebstore.google.com/detail/leotabs-—-tab-manager-swi/heolckkdeandgagkiefggcneodni...
2•ringlochid•13m ago•0 comments

Judeo-iraqi Arabic

https://en.wikipedia.org/wiki/Judeo-Iraqi_Arabic
1•marysminefnuf•16m ago•0 comments

Age of Enlightenment

https://en.wikipedia.org/wiki/Age_of_Enlightenment
1•num42•18m ago•0 comments

Planck Scale

https://en.wikipedia.org/wiki/Planck_units
2•num42•19m ago•0 comments

Show HN: Poptimum – A Daily Optimization Game

https://poptimum.fun/
1•ShayHDavidson•23m ago•0 comments

WeWorm: Zero-Click WeChat Worm

https://calif.io/research/weworm
2•BlackEarth•26m ago•0 comments

Show HN: GenieUI – Turn prompts into editable iOS and Android interfaces

https://genieui.com/
1•andygeek•40m ago•0 comments

Trails – Jac Hacks

https://github.com/tirthsuba15/trails-jac-hacks
1•tirthsuba•40m ago•0 comments

The Unspoken Skill of Finesse

https://newsletter.weskao.com/p/the-unspoken-skill-of-finesse
1•AntonZ234•43m ago•0 comments

Anthropic Says Iran Used Its American AI Model to Target U.S. Navy Warships

https://www.wsj.com/politics/national-security/anthropic-says-iran-used-its-american-ai-model-to-...
2•kaycebasques•44m ago•1 comments

Bending Spoons keeps buying iconic products, who's next?

https://nextspoons.com/
1•napolux•45m ago•0 comments

Teaching Novice Computing and Programming in the Agentic AI Era

https://cs.brown.edu/people/sk/Publications/Papers/Published/fkl-teach-nov-agentic-ai-era/
1•matt_d•47m ago•0 comments

Show HN: I combined Marc Lou's TrustMRR and IndiePage for free. I wanted it

https://myindie.space
1•sithu_khant•50m ago•0 comments

OpenAI agents attacked RubyGems before Hugging Face incident

https://www.reuters.com/legal/litigation/openai-agents-attacked-software-service-rubygems-before-...
2•01-_-•53m ago•0 comments

Does anyone run Postgres without PgBouncer?

https://www.brandur.org/fragments/postgres-without-pgbouncer
1•paperwhitez•1h ago•0 comments

Show HN: Don't Hit Send – the model answers while you type

https://github.com/scalattice/dont-hit-send
2•RomulusHill•1h ago•0 comments

Homotopy Type Theory – Univalent Foundations of Mathematics (2013)

https://hott.github.io/book/hott-online.pdf.html
2•peter_d_sherman•1h ago•1 comments

macOS defaults list: Incomplete list of macOS defaults commands with demos

https://macos-defaults.com
4•zdw•1h ago•0 comments

We blind-tested ChatGPT, Claude, and Gemini on 20 everyday tasks (Open Dataset)

https://dailyskill.ai/ai-benchmark-2026/
1•dubaimark•1h ago•1 comments

Maven Robotics wants to steal your robot deployment deal

https://techcrunch.com/2026/09/10/maven-robotics-wants-to-steal-your-robot-deployment-deal/
1•soltanov•1h ago•0 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

4•funkaster•1h ago•1 comments

Anthropic reveals rogue AI agents hate CAPTCHAs

https://techcrunch.com/2026/09/10/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you/
1•soltanov•1h ago•0 comments

Google Launches Meridian GeoX Globally

https://developers.google.com/meridian/geox
1•soltanov•1h ago•0 comments

OpenAI agents attacked RubyGems back in May

https://simonwillison.net/2026/Sep/12/openai-agents-rubygems/
19•lumpa•1h ago•1 comments

How the U.S. Space Force Is Used in Wars Today [video]

https://www.youtube.com/watch?v=RGcRuej-LVE
1•handfuloflight•1h ago•0 comments