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?

N-Able Disables Cloud Services Following Disclosure of Able2Shell Exploit Chains

https://www.huntress.com/blog/n-able-disables-cloud-services-following-disclosure-of-able2shell-e...
1•jodrellblank•3m ago•1 comments

Database Architects: The Benchmarking Crisis

http://databasearchitects.blogspot.com/2026/10/the-benchmarking-crisis.html
1•muehlbau•3m ago•0 comments

Boston Dynamics Launches Next Generation Stretch Robot

https://bostondynamics.com/news/boston-dynamics-launches-next-generation-stretch-robot/
1•gmays•3m ago•0 comments

Tabernetes: Kubernetes in the Browser Tab

https://jkroepke.de/tabernetes/
2•linkdd•3m ago•0 comments

Database Architects: Next-Level Benchmarking Overfitting

http://databasearchitects.blogspot.com/2026/11/next-level-benchmarking-overfitting.html
1•muehlbau•4m ago•0 comments

Use ChatGPT subscription for "good" iPhone autocorrect

https://apps.apple.com/us/app/intellikey/id1667188645
1•unktomi•5m ago•1 comments

Starship – Go for Orbit [video]

https://www.youtube.com/watch?v=8ySMdUIF3cY
1•moondistance•6m ago•0 comments

Torrent Underground: inside the exclusive world of private torrent trackers

https://www.theverge.com/cs/features/1027614/torrent-movies-file-sharing-download-piracy
1•ValentineC•6m ago•0 comments

AI and Irontown

https://lucumr.pocoo.org/2026/11/9/irontown/
1•lumpa•6m ago•0 comments

Formalizing CPython

https://broyojo.com/python-formalization/
2•carnevalem•6m ago•0 comments

Muru: HTTPS in Development

https://grahamdumpleton.me/posts/2026/11/muru-https-in-development/
1•lumpa•6m ago•0 comments

Measuring how AI agents handle everyday wet-lab science

https://openai.com/index/measuring-how-ai-agents-handle-wet-lab-science/
1•gmays•12m ago•0 comments

New FreeBSD pkgbase-update(8) Tool

https://vermaden.wordpress.com/2026/11/10/freebsd-pkgbase-update-tool/
1•vermaden•21m ago•0 comments

How a mathematical discovery changed the rules of chess

https://www.infinitelymore.xyz/p/thue-morse-sequence
1•FillMaths•24m ago•0 comments

Salary Negotiation (2026)

https://venki.com/notes/salary-negotiation
1•venkii•25m ago•0 comments

Blink

https://blink.sh/
2•TED1•27m ago•0 comments

Seedream 5.5 – 100-Round Editing, Native RGBA and Small Text

1•duke_ai•28m ago•0 comments

Toptal AI – Full-Stack AI Services Company in the World for Agent Creation

https://www.toptal.ai/
1•artur_makly•32m ago•0 comments

The Ethereum Foundation is officially a corporate suicide cult

https://davidgerard.co.uk/blockchain/2026/11/10/the-ethereum-foundation-is-officially-a-corporate...
2•bryanrasmussen•33m ago•1 comments

I asked Claude to interview itself

https://www.youtube.com/watch?v=_wYr3FexNIM
1•morgyn-io•35m ago•0 comments

FDA orders class-wide GLP-1 label update to include risk for rare eye disease

https://www.biospace.com/fda/fda-orders-class-wide-glp-1-label-update-to-include-potential-risk-f...
1•randycupertino•39m ago•0 comments

JPEG XL Is Becoming a Practical Choice for the Web

https://joshuamorris.info/notes/2026/11/06/jpeg-xl-is-back-and-the-web-is-better-for-it/
2•TheWoollyBully•43m ago•0 comments

Ask HN: How do you check the security of AI-generated code before shipping?

https://www.getpublishub.com
1•valmirjunior•46m ago•0 comments

Show HN: CMusee – C/C++ timeless debugger, record every function called

https://veefuse.com/en/cmusee/
1•veexx103•46m ago•1 comments

Google Antigravity for Knowledge Work

https://antigravity.google/blog/antigravity-for-knowledge-work/
3•mfiguiere•52m ago•0 comments

Show HN: I built a tool that babysits your agents

https://www.physicsbase.ai/
1•whitetiger01•56m ago•2 comments

Mailbag: Halloween 2026

https://unsung.aresluna.org/mailbag-halloween-2026/
1•jphorism•1h ago•0 comments

Show HN: FormaNest, Lay out a room in 3D in the browser and share it as a link

https://formanest.app/p/2LxQNrjg50vvxrbb
1•khalidahmad•1h ago•0 comments

Why is AI slop so frustrating to read?

https://twitter.com/zhizdev/status/2119874095269707977
2•espeed•1h ago•1 comments

Texpresso: A True Wysiwyg System for Open-Source LaTeX Design

https://github.com/let-def/texpresso
1•mathlab08•1h ago•0 comments