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

Can Chatbots Do Memfrob?

https://danieltuveson.github.io/stupid/llm/2026/04/24/chatbot.html
1•tuveson•27s ago•0 comments

The Race to Become the Context Layer for Agents

https://gavinray97.github.io/blog/the-race-for-universal-context-layer
1•gavinray•1m ago•0 comments

Most Developers Have Never Built Anything Real – The Numbers Are Embarrassing

https://comuniq.xyz/post?t=1032
1•01-_-•1m ago•0 comments

We removed AI from our game and it made it significantly better

https://zadzoud.com/chibitomo
1•ZeidJ•3m ago•1 comments

The King in Yellow (1895)

https://www.gutenberg.org/cache/epub/8492/pg8492-images.html
1•caminanteblanco•3m ago•0 comments

After 3 months of using standing desk

https://darshanmakwana412.github.io/2026/05/standing-desk/
1•darshanmakwana•6m ago•0 comments

Brockman: OpenAI to Spend $50B on Computing in 2026

https://www.bloomberg.com/news/articles/2026-05-05/openai-to-spend-50-billion-on-computing-in-202...
2•htrp•6m ago•0 comments

Every Type of Plastic Used by Lego

https://bricknerd.com/home/every-type-of-plastic-used-by-lego-2026-edition-3-12-26
1•speckx•6m ago•0 comments

AutoSP from PyTorch

https://pytorch.org/blog/introducing-autosp/
1•gmays•7m ago•0 comments

Show HN: Is your brand invisible to AI? We built a free visibility score

https://engagemii.com/aeo
1•Greg_engagemii•7m ago•0 comments

Why Is Electricity So Hard to Understand? (1989)

http://amasci.com/miscon/whyhrd3.html
1•downbad_•8m ago•1 comments

Public Service Announcement Badges

https://psas.dev/
1•edent•9m ago•0 comments

Show HN: Cockroach Battle Royale Game

https://roachoids.com
1•AFF87•10m ago•0 comments

LightInk, a Solar Powered ESP32 Smartwatch

https://hackaday.com/2026/05/05/lightink-a-solar-powered-esp32-smartwatch/
1•HardwareLust•10m ago•0 comments

Sam Bankman-Fried's Venture Bets Would Have Made Him $100B Richer

https://www.forbes.com/sites/ninabambysheva/2026/05/05/how-sam-bankman-frieds-venture-bets-would-...
1•paulpauper•11m ago•1 comments

The Programmer's Oath: 2025

https://ivanlugo.dev/oath.html
1•tikimcfee•11m ago•1 comments

Blackstone, KKR in Talks with Google to Bring AI Models to Portfolio Firms

https://www.bloomberg.com/news/articles/2026-05-05/blackstone-kkr-consider-google-deal-in-surge-o...
1•petethomas•11m ago•0 comments

Stop trying to review AI's code faster: bet on rollback instead

https://rootly.com/blog/stop-trying-to-review-ais-code-faster-bet-on-rollbacks-instead
1•sylvainkalache•11m ago•0 comments

Why didn't IPv6 work in my home network?

https://gowtham.dev/blog/ipv6-problems.html
1•lladnar•11m ago•0 comments

Ask HN: Have you ever thought of leaving programming for something else?

2•chistev•12m ago•1 comments

Font Changer Pro

https://chromewebstore.google.com/detail/font-changer-pro-—-fancy/gcnkiamhcnamjajanohnedpaafjgfbjc
1•asiffareed•13m ago•0 comments

Nature Portfolio paper for rigorous Bell-test for continuous quant systems

https://www.nature.com/articles/s41598-026-51406-0
1•singhshalender•13m ago•0 comments

What makes a good smartphone camera?

https://cadence.moe/blog/2026-05-05-what-makes-a-good-smartphone-camera
1•zdw•13m ago•0 comments

Zoo 2: getting the most out of Codex

https://tarantsov.com/meet-zoo-2/
1•andreyvit•15m ago•0 comments

The AI Cost of Admission

https://travismalone.substack.com/p/the-ai-cost-of-admission
1•tokonomy_dev•18m ago•0 comments

Stepping into the Future: A Paralyzed Veteran Returns to Georgia Tech for a PhD

https://research.gatech.edu/stepping-future-paralyzed-veteran-returns-georgia-tech-his-phd
1•duck•18m ago•0 comments

Ryan Cohen, GameStop CEO on TBPN, Purchase of eBay

https://x.com/i/broadcasts/1AxRnaEZRRkxl
1•vbhakta•18m ago•0 comments

The Brave Souls Who Bought a Used, 340k-Mile Rental Camper Van

https://www.thedrive.com/news/meet-the-brave-souls-who-bought-a-used-340000-mile-rental-camper-van
2•PaulHoule•19m ago•0 comments

Club-3090 Recipes for serving QWEN3.6 27B locally on RTX 3090s

https://github.com/noonghunna/club-3090
1•lastdong•20m ago•0 comments

Does Iran Have Secret Armed Dolphin Assassins?

https://www.popularmechanics.com/military/weapons/a30500130/iran-military-dolphins/
1•svenfaw•20m ago•2 comments