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?

The Quantity of Motion

https://www.mathpages.com/home/kmath106/kmath106.htm
1•num42•13s ago•0 comments

Trump phone is made in Taiwan [video]

https://www.youtube.com/watch?v=5O-vCJW1b8g
1•senti_sentient•4m ago•0 comments

Show HN: Wishcode: Post an idea you wish existed

https://wishcode-ai.vercel.app
1•build_with_ragh•5m ago•0 comments

Show HN: A malleable and formally verified Web engine

3•polyglotfacto•9m ago•0 comments

Bernstein – open-source governance layer for AI agents

https://bernstein.run
2•ankitg12•12m ago•0 comments

Show HN: I've logged my time every day since 2024, so I built an app for it

https://www.fluxtime.io/
1•dny402612141•17m ago•0 comments

We Won't "Just Hang Out"

https://borretti.me/article/we-wont-just-hang-out
3•barry-cotter•17m ago•1 comments

Hackers identify ICE employees in data breach

https://www.washingtonpost.com/immigration/2026/10/28/ice-cbp-other-dhs-officer-identities-posted...
1•ternaryoperator•18m ago•0 comments

Getting good at AI takes time and practice

https://www.seangoedecke.com/getting-good-at-ai-takes-time-and-practice/
5•gpi•20m ago•0 comments

Ask HN: I Need Advice

4•TuxedoBuddy•20m ago•3 comments

Concise/readable versions of OpenAI math dump

https://github.com/qpwo/ezmath2
2•lhmiles•23m ago•1 comments

What about Hyperpolitics

https://www.diggitmagazine.com/what-about-hyperpolitics
1•AntonioBarthes•25m ago•0 comments

Total Recall: The Woman Who Can't Forget

https://www.wired.com/2009/03/ff-perfectmemory/
1•jacquesm•27m ago•0 comments

The Limit of Extraction: Why Behavioral Data Is Not Equivalent to Expertise

https://medium.com/@smoking2man/the-limit-of-extraction-why-behavioral-data-is-not-equivalent-to-...
1•Aldus551•31m ago•0 comments

The upvote dilemma

https://herman.bearblog.dev/the-upvote-dilemma/
2•BrunoBernardino•32m ago•0 comments

Google Home Speakers downloading massive amounts of data

https://9to5google.com/2026/10/19/google-home-speaker-downloads/
1•the-mitr•33m ago•0 comments

Grocery stores are great abstractions

https://www.holm.dog/2026/10/grocery-stores-are-great-abstractions.html
1•friendshaver•40m ago•0 comments

Outcry after Call of Duty maker uses real footage of deadly Seoul crowd crush

https://www.theguardian.com/world/2026/oct/29/call-of-duty-seoul-crowd-crush-video-footage
1•Markoff•42m ago•0 comments

Smart reports, surveys, and pooled group budgets for Claude Enterprise

https://claude.com/resources/articles/smart-reports-surveys-pooled-budgets
1•clhodapp•42m ago•0 comments

Show HN: iCloud Drive Client for Linux, in Rust

https://github.com/taylorhayis/icloud-drive-for-linux
1•RufusJacksons•45m ago•0 comments

Show HN: Uji – Gentoo of Coding Agents

https://github.com/uji-labs/uji
4•cat-whisperer•45m ago•0 comments

Can AI agents do senior expert work? What the evidence says

https://estimandlab.com/insights/can-ai-agents-do-senior-expert-work/
1•spozveh•50m ago•0 comments

GeForce vs. Workstation GPUs: Nvidia's Half Rate, Priced

https://www.airealist.ai/p/nvidia-geforce-half-rate
3•julsimon•50m ago•1 comments

DockFrame is now live on CrowdSupply

https://www.crowdsupply.com/hw-media-lab/dockframe
1•hwlab•51m ago•0 comments

I tried to break a quantum computer (sort of)

https://medium.com/@jkim_tran/i-tried-to-break-a-quantum-computer-sort-of-d053602ae3fb
1•jennifer-trin•56m ago•0 comments

Show HN: A Cursor-like workspace for your LaTeX papers

https://github.com/cu1ch3n/papilot
1•cuichen•58m ago•0 comments

Beauty Is Everywhere. But What Is It For?

https://thereader.mitpress.mit.edu/beauty-is-everywhere-but-what-is-it-for/
1•prismatic•1h ago•1 comments

Tech Giants Ramp Up Resistance to ICE in Bid to Avoid Democratic Scrutiny

https://www.wsj.com/politics/policy/google-meta-ice-midterms-e6f2a6c4
2•JumpCrisscross•1h ago•2 comments

Guake Terminal

https://guake.github.io/
1•ankitg12•1h ago•1 comments

Show HN: Fabivo – Furniture design from a photo to a numbered cut list

https://www.fabivo.app/en
1•superpapotas•1h ago•0 comments