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?

Motion Blur for Half-Life Video Recording with Vulkan

https://bxt.rs/blog/motion-blur-for-half-life-video-recording-with-vulkan/
1•ankitg12•5m ago•0 comments

US midterm elections 2026 live updates: Democrats win Senate control and edge

https://www.theguardian.com/us-news/live/2026/nov/03/midterm-election-results-live-updates
3•hkhn•8m ago•0 comments

Show HN: AgentFirstStack – analytics, tags, email and replay your agent sets up

https://agentfirststack.com/
1•cod3boy•11m ago•0 comments

Nvidia Auto Ontology, but a Graph

https://nidra.computer/
1•trustbutverafy•12m ago•1 comments

Show HN: Open-source proxy for per-tenant Postgres, no app changes

https://play.lokadb.com
1•kagen•13m ago•1 comments

Show HN: What games does HN talk about? (Project 24)

https://nicobrenner.github.io/project24/
1•nico•13m ago•1 comments

Domicile Desktop Brings Web Technologies to Building Wayland Desktops

https://www.phoronix.com/news/Domicile-Desktop-Wayland
1•xiaoyu2006•17m ago•0 comments

Peptides and Silicon Valley's Use of Them – Good Work [video]

https://www.youtube.com/watch?v=W0ltbBby9FU
1•heavensteeth•17m ago•0 comments

Democrats take control of US Congress as voters reject Trump's Republicans

https://www.bbc.com/news/live/cj1dw0ydn595t
8•hkhn•17m ago•1 comments

Japanese bank to stop allowing ATM cards, personal computers for account access

https://asia.nikkei.com/business/finance/new-mufg-digital-bank-to-forgo-atm-cards-in-cybercrime-s...
1•negura•19m ago•1 comments

The Death of the Angel Investor

https://zachholman.com/posts/angel-investor-death
1•doppp•23m ago•0 comments

Show HN: Dryplate – Image tools that run in the browser, no upload

https://dryplate.dev/
3•tsvillain•28m ago•0 comments

crates.io is down

https://crates.io/
1•boguscoder•28m ago•0 comments

Play CS 1.6 in the browser in under 10 seconds

https://playcsbrowser.com/
1•oldcai•29m ago•0 comments

Show HN: A space for folks with ADHD and Anxiety (invite code in dscrptn)

https://asyde.space
2•udit_50•30m ago•0 comments

How should coding agents handle noisy repository history?

https://twitter.com/AgentMemoryL/status/2117617801296802085
1•SndOfViento•37m ago•0 comments

YC's Workatastartup – New UI

1•kank0de•41m ago•0 comments

PostgreSQL Internals [pdf]

https://edu.postgrespro.com/postgresql_internals-14_en.pdf
2•Foe•46m ago•0 comments

A boilerplate for Node.js apps / TypeScript

https://github.com/watscho/express-mongodb-rest-api-boilerplate
1•watscho•46m ago•0 comments

Wild Ventures

https://game.weibelventures.com/
1•lokimedes•47m ago•0 comments

Nikke PC Launcher Compromise

https://gist.github.com/MotherSphere/d6c049a09ba8ac3085c51ee9df24a4e5
1•keithoffer•50m ago•1 comments

An 80-Cent Plastic Pouch Is Saving Women from Dying in Childbirth

https://www.nytimes.com/2026/11/03/health/maternal-drapes-nigeria-childbirth.html
6•riffraff•50m ago•1 comments

Synthetic Deep Web: On Algorithmic Invisibility in the Age of Generative Models

https://medium.com/@smoking2man/synthetic-deep-web-on-algorithmic-invisibility-in-the-age-of-gene...
2•Aldus551•52m ago•0 comments

Extreme Environments Push Chips to Their Breaking Point

https://semiengineering.com/extreme-environments-push-chips-to-their-breaking-point/
1•gmays•57m ago•0 comments

Text.js: Build full-stack React apps that render inside console.log

https://textjs.org/
2•nateb2022•1h ago•0 comments

GPT-Synopsys Combines IC Design EDA with Agentic AI

https://www.eetimes.com/gpt-synopsys-combines-ic-design-eda-with-agentic-ai/
1•gmays•1h ago•0 comments

Engraphis – Local-first, bi-temporal memory for AI coding agents

https://github.com/Coding-Dev-Tools/engraphis
2•Jaixii•1h ago•0 comments

Data Centers on the Ballot

https://datacentersontheballot.com/
4•at1as•1h ago•0 comments

I built a free local AI co-processor in Rust. AXON Developer Edition

https://jrabbass.github.io/axon/
1•jrabbass•1h ago•0 comments

Declarative Dragging

https://declarative-dragging.github.io/
2•tlarkworthy•1h ago•0 comments