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?

Show HN: Find out how ChatGPT describes your brand, then fix it

https://pallix.in
1•not_wowinter14•3m ago•0 comments

Python Package Comparison for Webcrawlers and Website Mirroring

https://inventwithpython.com/blog/python-webcrawler-package-comparison-aug-2026.html
1•gregsadetsky•4m ago•0 comments

ChatGPT / Codex Reset on Monday

https://xcancel.com/thsottiaux/status/2086189414292865249
1•sscaryterry•5m ago•0 comments

Hyper-Markdown – Markdown for knowledge graphs

https://hyper-markdown.org/
2•divingstar•9m ago•1 comments

I aggregated tracker SDKs and permissions across 300 open-source Android apps

https://apptizo.com/reports/app-trackers-permissions/
1•jkircas•10m ago•0 comments

The Internet Is in Crisis

https://www.theatlantic.com/culture/2026/08/perez-hilton-livestream/688223/
1•paulpauper•10m ago•0 comments

Switzerland is a neutral nation but has more nuclear bunkers than any country

https://www.npr.org/2026/08/08/g-s1-137635/switzerland-nuclear-bunkers
1•andsoitis•13m ago•0 comments

James Bond, not Bond James: why scientific publishing must respect name order

https://www.nature.com/articles/d41586-026-01772-6
2•paulpauper•15m ago•0 comments

What's New in Inkdrop v6

https://forum.inkdrop.app/t/whats-new-in-v6/5570
2•dgavrilov•23m ago•0 comments

Coldcard hardware wallet firmware flaw sees 2k BTC (~$130M) drained

https://www.web3isgoinggreat.com/?id=coldcard-hardware-wallet-flaw
5•ilamont•26m ago•1 comments

Wikipedia's founder on his life's work: "A propaganda tool"

https://nordictimes.com/world/wikipedias-founder-on-his-lifes-work-a-propaganda-tool/
3•thisislife2•27m ago•0 comments

Time Series Observing Itself

https://timeseriesofindia.com/meta/
2•prtk25•30m ago•0 comments

Show HN: Fullscreener // borderless fullscreen for any window (Windows only)

https://github.com/carlos-menezes/fullscreener
1•carlos-menezes•30m ago•0 comments

AI Music Debate Is Missing Half the Money

https://justwordz.medium.com/the-ai-music-debate-is-missing-half-the-money-ffb714924aaa
1•samspenc•31m ago•0 comments

Leibniz's Treatise Disputatio metaphysica de principio individui

https://ojs.tnkul.pl/index.php/rf/article/view/12197
1•Bluestein•31m ago•0 comments

Use Claude Code to make synced video edits to a song

https://github.com/ZiadAbdelkarim/beat-synced-edit
1•iwasastreamer•34m ago•0 comments

Am I the problem? Interviewing another team to find out

https://www.macchaffee.com/blog/2026/am-i-the-problem/
1•signa11•38m ago•0 comments

What We Talk About When We Talk About Bruce Lee

https://decodingvibes.com/blog/what-we-talk-about-when-we-talk-about-bruce-lee/
1•altmanaltman•39m ago•0 comments

Shadow AI is a hidden risk to your business

https://proton.me/business/blog/shadow-ai
3•devonnull•41m ago•0 comments

I build the Tinder to choose food

https://beta.platetale.com/
1•anhyourdream•42m ago•0 comments

Anthropic Economic Index

https://www.anthropic.com/economic-index
4•ronfriedhaber•43m ago•0 comments

Swift-Gigatoken

https://github.com/1amageek/swift-gigatoken
1•frizlab•48m ago•1 comments

The Idea of an Immutable Social Media

https://citizendot.github.io/articles/the-idea-of-immutable-social-media/
4•CITIZENDOT•54m ago•1 comments

Maryland Closes More of Cunningham Falls State Park After Second Beaver Attack

https://news.maryland.gov/dnr/2026/08/05/dnr-closes-additional-areas-of-cunningham-falls-state-pa...
25•bookofjoe•55m ago•9 comments

Pneumatic tube mail in New York City

https://en.wikipedia.org/wiki/Pneumatic_tube_mail_in_New_York_City
4•gkaemmer•58m ago•0 comments

MacGregor the Bridge Builder

https://www.astralcodexten.com/p/macgregor-the-bridge-builder
1•Ariarule•59m ago•0 comments

I gave Claude complete ownership over a website

https://freebot.dev/
2•BenediktHolm•1h ago•3 comments

Attack Techniques: Fake Captive Portals

https://textslashplain.com/2026/08/03/attack-techniques-fake-captive-portals/
2•rowbin•1h ago•0 comments

Improving Heuristics

https://www.redblobgames.com/pathfinding/heuristics/differential.html
2•ingve•1h ago•0 comments

Microsoft Tells Engineers 'Tokenmaxxing Is Not What We Are Optimizing For'

https://www.404media.co/microsoft-tells-engineers-tokenmaxxing-is-not-what-we-are-optimizing-for/
4•doener•1h ago•0 comments