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•12mo 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•12mo 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?

Definable Real Number

https://en.wikipedia.org/wiki/Definable_real_number
1•nill0•5m ago•0 comments

When Microsoft saved Apple (2017)

https://www.cnbc.com/2017/08/29/steve-jobs-and-bill-gates-what-happened-when-microsoft-saved-appl...
1•thunderbong•5m ago•0 comments

A Lisa Inside an FPGA

https://lisalist2.com/index.php?topic=694.0
1•uyjulian•8m ago•0 comments

Performance of a large language model on the reasoning tasks of a physician

https://www.science.org/doi/10.1126/science.adz4433
1•voisin•10m ago•0 comments

You Have No Idea How Much You Still Use BlackBerry

https://www.wsj.com/tech/blackberry-qnx-software-cars-bf2a2280
1•voisin•13m ago•0 comments

How the suffering system works in Hollow

https://ninjahawk.github.io/blog/posts/suffering-system.html
1•ninjahawk1•19m ago•0 comments

Show HN: BoxLite – the micro-VM runtime for embedded, local dev, and cloud prod

https://github.com/boxlite-ai/boxlite
1•dorianzheng•19m ago•0 comments

NASA's Nancy Grace Roman telescope will offer an 'atlas of the universe'

https://www.msn.com/en-us/news/technology/nasas-incredible-new-telescope-will-offer-an-atlas-of-t...
1•slow_typist•20m ago•0 comments

Git Rev News Edition 134 (April 30th, 2026)

https://git.github.io/rev_news/2026/04/30/edition-134/
1•chmaynard•25m ago•0 comments

Improved testing logic in od.nvim, added a serializers module to ocote

1•Okerew•29m ago•0 comments

Deepfakes Are Coming for Your Bank Account

https://www.theatlantic.com/technology/2026/05/chatgpt-images-deepfakes-fraud/687023/
1•JumpCrisscross•30m ago•0 comments

Free Mercurial Hg Hosting at Hglab.io

https://www.hglab.io/
1•harrisonerd•35m ago•1 comments

Show HN: Editor, Browser, Terminal, Mail, Agents. AI Sharing Context

https://github.com/raiyanyahya/kit
2•RaiyanYahya•37m ago•2 comments

PocketOS AI Fiasco – Lesson in Automation Access

https://onlytech.boo/incident/pocketos-ai-fiasco-lesson-in-automation-access-mokdojol
1•vednig•39m ago•1 comments

How to Test AI Agents When They Never Give the Same Answer Twice

https://adlrocha.substack.com/p/adlrocha-the-eval-problem-how-to
1•adlrocha•46m ago•0 comments

Quickheap: The fastest comparison-based heap?

https://curiouscoding.nl/posts/quickheap/
1•Peter5•47m ago•0 comments

Claude Code and Obsidian – build a second brain <3

https://canatak.substack.com/p/i-dont-need-to-know-everything-i
1•cango35•48m ago•0 comments

What's New in Git 2.54.0?

https://about.gitlab.com/blog/whats-new-in-git-2-54-0/
1•chmaynard•55m ago•0 comments

The Last Principle We Learn to Use

https://gpt.gekko.de/the-last-principle-we-learn-to-use/
1•ekadagami•58m ago•0 comments

Show HN: Enoch – Control Plane for Autonomous AI Research

https://github.com/alias8818/enoch-agentic-research-system
2•aliasocracy•1h ago•0 comments

Grok 'drive an iron nail through the mirror while reciting Psalm 91 backwards'

https://www.theguardian.com/technology/2026/apr/24/musk-grok-x-ai-researchers-delusional-advice-i...
2•iamflimflam1•1h ago•1 comments

Revived Mozilla's BrowserQuest game on popular demand play online for free

https://threej.in/games/browserquest/index.html
1•cryptpal•1h ago•0 comments

Why Did Huawei Build Its Own Programming Language? [video]

https://www.youtube.com/watch?v=ujpl5_TmAaE
2•melchizedek6809•1h ago•0 comments

Why TUIs Are Back

https://wiki.alcidesfonseca.com/blog/why-tuis-are-back/
1•vinhnx•1h ago•0 comments

BTC Pulse – 4-factor composite model · Bitcoin Real-time macro signals

https://btcpulse.vercel.app/
1•tvvocold•1h ago•0 comments

Online Signature Generator

https://www.online-unterschriftgenerator.de/
1•Hamaq•1h ago•0 comments

Who Killed Spirit Airlines?

https://www.thebignewsletter.com/p/who-killed-spirit-airlines
1•chmaynard•1h ago•0 comments

Word Clouds Considered Harmful (2011)

https://jacobharr.is/published/word-clouds
1•Tomte•1h ago•0 comments

Show HN: A modern Git based age-encrypted secrets manager for teams

https://github.com/sayanarijit/cottage
1•sayanarijit•1h ago•0 comments

Local-first Kubernetes UI in a single Go binary

https://github.com/skyhook-io/radar
8•nadaverell•1h ago•3 comments