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?

Super Mario levels are mathematically unsolvable

https://www.scientificamerican.com/article/these-super-mario-levels-are-mathematically-unsolvable/
1•DeathArrow•1m ago•0 comments

Hubs Versus Switches–Understand the Tradeoffs (2002) [pdf]

https://www.ccontrols.com/pdf/Extv3n3.pdf
1•speckx•2m ago•0 comments

Show HN: Lemma, an IDE for reading mathematics (macOS, open source)

https://github.com/fus3r/lemma
1•fus3r•2m ago•0 comments

How Opus 5.5 Made a Stop-Motion Purely Using Code

https://muhammadraza.me/2026/stop-motion-explainer-claude-opus/
2•mr_o47•4m ago•0 comments

Endless collage made by AI agents

https://swarm.remyhax.xyz/
1•jerrythegerbil•4m ago•0 comments

Nobel Prize in economics goes to Hall, Woodford for work on boom-bust cycles

https://www.npr.org/2026/10/09/nx-s1-5996634/nobel-prize-in-economics
2•rbanffy•4m ago•0 comments

Dev used AI agents to rebuild Modern Warfare 2's source code; 83% matches

https://www.tomshardware.com/tech-industry/artificial-intelligence/dev-used-ai-agents-and-more-th...
2•sbulaev•5m ago•0 comments

Show HN: I turned a $4 toy robot into an AI companion with one web page

https://github.com/beasaltfish/bot-reborn
1•beasaltfish•6m ago•0 comments

Show HN: Mastershot – a free web-based video editor (WASM AI)

https://mastershot.app/video-editor/
2•jackbeck•6m ago•0 comments

Nojoin – open-source meeting assistant

https://github.com/Valtora/Nojoin
1•TayD•7m ago•1 comments

Building classifiers from your own examples with Jeffy (EP.51) [Japanese]

https://hukuhuku.co.jp/blog/tools-toolbox/toolbox-51-jeffy-custom-classifier
1•nico•10m ago•0 comments

Drones Hit Yandex So Cloudflare Kept the Russians Online

https://www.flyingpenguin.com/drones-hit-yandex-so-cloudflare-kept-the-russians-online/
1•speckx•11m ago•0 comments

The biggest hack in crypto history that never happened

https://verialabs.com/blog/biggest-hack-in-crypto-history/
1•SuperBeetleGame•11m ago•0 comments

Parsing compressed JSON at 40 gigabytes per second

https://lemire.me/blog/2026/10/01/parsing-compressed-json-at-40-gb-s/
1•surprisetalk•12m ago•0 comments

18,000 messages between AI agents on a German wiki. That made me build something

https://www.reddit.com/r/aiagents/comments/1x2ejwp/comment/pf2jzge/
1•oger•13m ago•0 comments

The Lethal Trifecta [video]

https://www.youtube.com/watch?v=abw_m-DRi1k
1•tkdb•14m ago•0 comments

The Münchhausen/Agrippa's Trilemma

https://en.wikipedia.org/wiki/Münchhausen_trilemma
2•0x4e•16m ago•0 comments

Knocker device remotely "knocks on wood" using smartphone app

https://www.dezeen.com/2026/10/05/knock-on-wood-device-shashwath-santosh-nithin-eluvathingal/
1•geox•17m ago•0 comments

'How I Became a Lock Picker'

https://www.newyorker.com/culture/the-weekend-essay/how-i-became-a-lock-picker
2•DamnInteresting•17m ago•0 comments

Show HN: Alternative to Cube and MetricFlow

https://0sql.io/
2•allenjiji•18m ago•0 comments

Optim-Jev: suite of Jev tools for Claude Code that care about context

https://github.com/Oqura-ai/optim-jev
1•biswalswaraj88•19m ago•0 comments

Ghost Stars: What a 4.0 on Google Maps Reviews Means in Germany

https://schristoph.online/blog/ghost-stars
1•thomas_witt•20m ago•1 comments

We don't know how to hire. We're just confident

https://www.nibzard.com/hiring
2•nkko•21m ago•0 comments

Open spec and examples for a free Bitcoin cycle score feed (JSON, CSV, widget)

https://github.com/multiassist/bitcoin-barometer
1•nakamoto_notes•22m ago•0 comments

'free' AI tool is costing you money

https://buoy.gg/blog/no-tools-vs-argent-vs-buoy
1•lovesworking•22m ago•0 comments

Show HN: RME – open-source Android scanner with no INTERNET permission

https://github.com/lucianRME/rme-pdf-scanner
1•LucianRME•22m ago•0 comments

What even is mathematical output?

https://thehighergeometer.wordpress.com/2026/10/12/what-even-is-mathematical-output/
3•mathgenius•23m ago•0 comments

A CTF scoreboard for HN entries

https://hn.cfptime.org/
1•PaulSec•28m ago•0 comments

Mathematics as a new Age of Discovery (and what they might find)

https://interconnected.org/home/2026/10/10/math
2•speckx•28m ago•0 comments

Diet drinks work as well as water for weight loss, major trial finds

https://www.sciencedaily.com/releases/2026/10/261002080017.htm
3•Vaslo•29m ago•2 comments