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?

Stranded in the Clouds: The Rise and Fall of Piero Portaluppi's Wagristoratore

https://socks-studio.com/2016/10/22/piero-portaluppis-wagristoratore-1929-30/
1•omblivion•3m ago•0 comments

Interrail: 6,379Km and 13 Countries over 7 weeks

https://shkspr.mobi/blog/2026/07/another-ridiculous-interrail-holiday-6379km-and-13-countries-ove...
1•coinfused•6m ago•0 comments

AMule 3.0.0 Released

https://amule-org.github.io/changelog/3.0.0
1•vlugorilla•11m ago•0 comments

Trading Strategy Graveyard

https://github.com/cmatthwilkes-debug/trading-strategy-graveyard
2•Strawburry•15m ago•0 comments

I've Published Another Chrome Extension: Macro Search – Bulk Edit Forms

https://chromewebstore.google.com/detail/macro-search-bulk-edit-fo/aogiliciaaieflajlojfkmamehllbkeh
1•knyadzayo•20m ago•0 comments

Show HN: Pentaton LP – a music streamer with an LP sleeve sized display

https://pentaton.app/blog/2026-07-12-introducing-pentaton-lp/
3•interfeco•22m ago•0 comments

Twelve Months of Reading (2012)

https://www.wsj.com/articles/SB10001424127887324001104578165432521728030
1•TEHERET•22m ago•1 comments

TSMC posts record revenue in second quarter on AI demand

https://www.reuters.com/technology/artificial-intelligence/
1•adithyaharish•23m ago•0 comments

AI Email Template Design Company

https://madooai.com
1•andreponce•24m ago•0 comments

Redacted

1•b112•25m ago•0 comments

A social media engine that learns from every post's engagement

https://postlore.com
3•ggap•26m ago•1 comments

From the To-Do List to the AI Agent

https://www.youtube.com/watch?v=OuEKdD_1F8s
1•rasengan0•27m ago•0 comments

The Oligarchs Who Came to Regret Supporting Hitler

https://www.rsn.org/001/the-oligarchs-who-came-to-regret-supporting-hitler.html
1•vrganj•27m ago•0 comments

Addictive software litigation: Early signals for casualty risk

https://www.moodys.com/web/en/us/insights/insurance/addictive-software-litigation-early-signals-f...
1•akbarnama•27m ago•0 comments

Interactive Jacobian-Lens visualizer and live steerer for GGUF models

https://github.com/igorbarshteyn/jlens-gguf
1•ttflee•27m ago•0 comments

Show HN: A tool that auto-merges duplicate GitHub/Discourse/email issues

1•Daniel-Pan•28m ago•0 comments

Show HN: WP plugin to build custom Gutenberg blocks using only PHP and Tailwind

https://github.com/Adodo777/Marcosado-PHP-Block-Builder
1•Marcosado•28m ago•0 comments

AI Is a Product of Humanity. Humanity Should Own AI

https://jacobin.com/2026/07/ai-big-tech-global-ownership-control
1•one33seven•29m ago•0 comments

Under Lula, Amazon deforestation falls to lowest level in a decade

https://www.aljazeera.com/news/2026/7/10/under-lula-amazon-deforestation-falls-to-lowest-level-in...
3•robtherobber•30m ago•0 comments

Quadrupling code performance with a "useless" if

https://purplesyringa.moe/blog/quadrupling-code-performance-with-a-useless-if/
8•birdculture•33m ago•1 comments

I Built ApplyOnce Because Job Applications Shouldn't Feel Like Data Entry

https://chromewebstore.google.com/detail/applyonce-job-application/anmljacnioamdkdcohmhbghlbcffbiaf
1•knyadzayo•37m ago•0 comments

Buran: The Most Impressive Thing the Soviets Ever Built [video]

https://www.youtube.com/watch?v=34tq4RNDRTQ
2•shakow•37m ago•1 comments

Last known US polio survivor using iron lung dies aged 78

https://www.theguardian.com/us-news/2026/jul/12/martha-lillard-last-polio-survivor-iron-lung-death
3•rob74•38m ago•0 comments

The tests passed. The plan didn't

https://boringsql.com/posts/regresql20/
2•radimm•39m ago•0 comments

I like the Uruky search engine

https://akselmo.dev/posts/i-like-the-uruky-search-engine/
2•BrunoBernardino•41m ago•1 comments

Big private equity firms pull in more cash as winners take all

https://www.ft.com/content/b7130eb3-c8bd-460f-9d8a-082e7bb48b48
1•petethomas•43m ago•0 comments

Full Page Screenshot Pro captures lazy loaded pages other tools miss

https://www.fullpagescreenshot.pro/
1•chrisboss•44m ago•0 comments

Show HN: Loot Raiders – an ARC Raiders-inspired inventory game in Svelte

https://loot-raiders.vercel.app
1•refrigerator-12•47m ago•0 comments

The will to power will return

https://world.hey.com/dhh/the-will-to-power-will-return-58ffb9dc
1•ksec•48m ago•0 comments

The Illusion of Competence

https://www.theminimalistdeveloper.com/the-illusion-of-competence/
2•rafaelnexus•49m ago•0 comments