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?

Croatia's Infobip acquires SocketLabs to expand enterprise email infrastructure

https://seenews.com/news/croatias-infobip-acquires-socketlabs-to-expand-enterprise-email-infrastr...
1•taubek•55s ago•0 comments

Launch HN: Context.dev (YC S26) – API to get structured data from any website

https://www.context.dev
1•TheYahiaBakour•1m ago•0 comments

Hy3

https://hy.tencent.com/research/hy3
1•andai•2m ago•0 comments

How to Set Up DKIM: From Key Generation to a Passing DMARC Report

https://dmarcguard.io/blog/dkim-setup-guide/
1•meysamazad•2m ago•0 comments

A Summer Creativity Experiment

https://brainbaking.com/post/2026/07/a-summer-creativity-experiment/
1•meysamazad•3m ago•0 comments

How to Write an Email

https://blog.dannycastonguay.com/how-to-write-an-email/
1•speckx•3m ago•0 comments

Show HN: Strata – guess the city from its real 3D terrain and bathymetry

https://flightq.app/strata
1•skyq•3m ago•0 comments

Show HN: ADarkTerminal

https://adarkterminal.electricsheep.games
1•rrotaru•3m ago•0 comments

Show HN: Blocks.ai – control plane and network layer for agents

https://blocks.ai
1•BlocksAI•3m ago•0 comments

A Possible Future for Damn Interesting

https://www.damninteresting.com/a-possible-future/
1•mzur•4m ago•0 comments

Show HN: I wrote a Libc-free AOT systems language in JavaScript with no VM

https://github.com/DO-SAY-GO/freelang
1•keepamovin•4m ago•0 comments

Good Pain

https://html-chunder.neocities.org/posts/good-pain/
1•meysamazad•5m ago•0 comments

Motion-first robotic action segmentation beats vision-first SOTA

https://www.nomadicai.com/blog/action-segmentation-benchmark
1•simbasdad•6m ago•0 comments

Deadly bacteria found in city's wastewater system tied to Meta data center

https://www.dailymail.com/sciencetech/article-15962981/mark-zuckerberg-meta-wyoming-ai-data-cente...
4•cdrnsf•8m ago•0 comments

Acronym Fatigue Series part 1: CAP, ACID and friends

https://devz.cl/posts/acronym-fatigue-series-cap-acid-etl-elt/
2•DanielVZ•9m ago•0 comments

New York Times and Other Publishers Ask Court to Penalize OpenAI

https://www.nytimes.com/2026/07/09/technology/new-york-times-openai.html
1•donohoe•9m ago•0 comments

Opinionated and Easy Pi.dev Configuration

https://lazypi.org/
2•lwhsiao•10m ago•0 comments

Coordination Without Consolidation: On Systems of States [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/06/iq-4.2-summer-2026-macdonald-coordinatio...
1•brandonlc•10m ago•0 comments

Will We Ever Find Alien Civilizations?

https://www.quantamagazine.org/will-we-ever-find-alien-civilizations-20260709/
2•worldvoyageur•12m ago•1 comments

Stop Using reCAPTCHA – It's Not a Real Captcha

https://na0341.bearblog.dev/info/stop-using-recaptcha/
1•speckx•13m ago•0 comments

Dmars – A modern Core Wars toolchain

https://dmars.drpz.xyz/
1•holliplex•13m ago•1 comments

Childhood stunting fell dramatically over the 20th century

https://ourworldindata.org/childhood-stunting-fell-dramatically-over-the-20th-century
1•surprisetalk•13m ago•0 comments

Show HN: Sticky notes that disappear from screen sharing

https://www.noticky.app/en
1•leotryhard•16m ago•0 comments

Show HN: LastShelf – an emergency map of your family's documents bills& contacts

https://www.lastshelf.ai/
6•sbrown12•17m ago•0 comments

The Shifting Landscape of Headquarters Relocations: 2026 Update

https://www.cbre.com/insights/viewpoints/business-insights-the-shifting-landscape-of-headquarters...
1•throwoutway•17m ago•0 comments

Bytechef open source platform for AI agent orchestration and workflow automation

https://github.com/bytechefhq/bytechef/tree/master
1•taubek•17m ago•0 comments

How to design a cancer vaccine (and improve them)

https://www.owlposting.com/p/how-to-design-a-cancer-vaccine-and
2•abhishaike•17m ago•0 comments

Show HN: CashFlow

https://cashflow-phi-amber.vercel.app/
1•SanishKumar•20m ago•1 comments

Automated Repair for Apache Cassandra

https://github.com/thelastpickle/cassandra-reaper
1•dockerd•20m ago•0 comments

PostgreSQL 19 vs. Memgraph: Comparing Graph Traversal Performance

https://memgraph.com/blog/postgresql-19-alternatives-memgraph
1•taubek•21m ago•0 comments