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?

The Dirt That Refused to Die

https://www.quantamagazine.org/the-dirt-that-refused-to-die-20260601/
1•speckx•53s ago•0 comments

Live video compositing servers behave a lot like multiplayer game servers

https://fishjam.swmansion.com/blog/live-video-compositing-devops
1•kuligkar•3m ago•0 comments

$9T Collapse Machine

https://www.truthdig.com/articles/nine-trillion-dollar-collapse-machine/
2•raju•5m ago•0 comments

Cloudflare CTO enforcing usage limits

https://old.reddit.com/r/BetterOffline/comments/1tryfft/cloudflare_cto_enforcing_usage_limits/
3•mmarian•6m ago•0 comments

Critical Windows Netlogon RCE flaw now exploited in attacks

https://www.bleepingcomputer.com/news/microsoft/critical-windows-netlogon-remote-code-execution-f...
1•Brajeshwar•6m ago•0 comments

I don't believe in big decisions

https://alwaysdraft.com/i-dont-believe-in-big-decisions/
1•Reebz•6m ago•0 comments

Coding Capybaras – Ship Your SaaS Fast- Free Boilerplate for Founder Using AI

https://codingcapybaras.com
1•MarketplaceV•7m ago•0 comments

Open-Source Software Is Starting to Help Robots Think

https://spectrum.ieee.org/open-source-robot-ai-platforms
1•atlasunshrugged•7m ago•0 comments

Tell HN: Exploit mimicking Cloudflare's verify human page

1•SenHeng•9m ago•0 comments

Shademap: Global Sun Simulation

https://shademap.app
1•luispa•9m ago•0 comments

Florida Sues OpenAI

https://www.nbcnews.com/tech/tech-news/florida-sues-openai-sam-altman-saying-put-profit-safety-rc...
2•leopoldj•10m ago•0 comments

Russia Finance Officials Tell Putin War Spending Is Unaffordable

https://www.bloomberg.com/news/articles/2026-06-01/russia-finance-officials-tell-putin-war-spendi...
1•DivingForGold•10m ago•0 comments

I built a license plate recognition API with a live demo

https://www.platenexus.com/demo/?lang=pt
1•androg•10m ago•0 comments

Ask HN: Who is hiring? (June 2026)

10•whoishiring•11m ago•18 comments

Ask HN: Who wants to be hired? (June 2026)

6•whoishiring•11m ago•14 comments

Show HN: Json2vec – build/train/deploy models with nested data structures

https://github.com/json2vec/json2vec
1•granthamctaylor•12m ago•0 comments

Claude as a Robot Teacher

https://irvin.quest/distilling-zero-shot-control/
1•evakhoury•12m ago•0 comments

AI IDE Plugin: Did you get it?

https://github.com/bugthesystem/dygit
1•ziyasal•12m ago•1 comments

Notfiles: Or how I learned to stop worrying and love Nix

https://jry.io/writing/stop-worrying-love-nix/
2•evakhoury•13m ago•0 comments

Ask HN: Ideas for non-profit school locked out of Google Workspace?

2•EvanAnderson•14m ago•0 comments

Snappy – quick-reply templates for WhatsApp Web (manual, all-local)

https://chromewebstore.google.com/detail/snappy-—-quick-reply-temp/dfinlofkbmhbeipdlnbpfaefbgge...
1•greenwan•15m ago•0 comments

At least you won't be alone

https://debarshibasak.github.io/readables/blogs/not-alone.html
1•debarshri•15m ago•0 comments

DockTalk: Two AIs Gossiping Across the Namespace Wall

https://lasthumanity.com/posts/docktalk-two-ais-gossiping-across-the-namespace-wall/
1•viega•15m ago•0 comments

SaySynth: A Brief History of Speaking Machines

https://brian.abelson.live/log/2025/12/20/saysynth-composition-codes.html
1•evakhoury•15m ago•0 comments

Iran stops negotiations with U.S., vows to 'completely' block Strait of Hormuz

https://www.cnbc.com/2026/06/01/iran-us-negotiations-strait-of-hormuz.html
4•dgellow•16m ago•2 comments

Show HN: MigraDiff – migra fork with AI migration generation for Postgres

https://github.com/leochong/migradiff
1•lateos-ai•17m ago•0 comments

Social Programming Language Constructs

https://jimmyhmiller.com/social-language-constructs
1•theanonymousone•17m ago•0 comments

Show HN: Paid or Played? – a simple recoupment calculator for music artists

https://paid-or-played.vercel.app/
1•lorenzosch•18m ago•0 comments

The S in Interoperability

https://frederikbraun.de/the-s-in-interoperability.html
1•birdculture•21m ago•0 comments

Climate Explainer: El Nino/La Nina and tropical storms around the world

https://www.aljazeera.com/news/2026/6/1/how-could-el-nino-reshape-tropical-storms-around-the-worl...
2•dxs•24m ago•0 comments