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?

Sunwæe – your life's AI OS

1•dvdxnss•57s ago•0 comments

Language Design Impacts Security

https://www.adacore.com/blog/how-language-design-impacts-security
1•ajdude•1m ago•0 comments

Why Token Optimization Is a Gift to the Hyperscalers

https://www.uncoveralpha.com/p/why-token-optimization-is-a-gift
1•gmays•2m ago•0 comments

Help! My passive fund is aggressively US tech focused

https://monevator.com/help-my-passive-fund-is-aggressively-us-tech-focused/
1•rocco8620•3m ago•0 comments

The Humanoid That Pays to Stand Still – Robotics

https://atomsfrontier.substack.com/p/the-humanoid-that-pays-to-stand-still
1•jpatel3•3m ago•0 comments

Open USD

https://joinopenstandard.com/blog/introducing-open-usd
1•coloneltcb•3m ago•0 comments

Show HN: TraceAIO – open-source LLM visibility tracker

https://traceaio.org
2•owenthejumper•4m ago•0 comments

Solved.Earth

https://Solved.Earth
1•benheaton•4m ago•0 comments

Counterfeit Verifiability in Autonomous Agent Payments

https://zenodo.org/records/21042364
1•adamzwasserman•4m ago•0 comments

Speculative Supply Chains: How Rational Incentives Manufacture Madness of Crowds

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7022818&__cf_chl_f_tk=v0gWvo.uXho1ZsUoo8e07qq...
1•petethomas•4m ago•0 comments

The AI Productivity Trap

https://i0exception.substack.com/p/doing-more-shipping-less
1•i0exception•5m ago•0 comments

Does Social Media Use Matter for Students' Well-Being?

https://link.springer.com/article/10.1007/s10902-026-01070-y#Sec29
1•mpweiher•5m ago•0 comments

Show HN: Statuslin.es – a community library of custom Claude Code status lines

https://statuslin.es
1•nastynate•6m ago•0 comments

Using Playwright to test my static sites

https://alexwlchan.net/2026/playwright/
2•surprisetalk•7m ago•0 comments

AI and Us: It's Complicated

https://syntheticauth.ai/posts/ai-the-falsity-of-comparison
1•zerolayers•7m ago•0 comments

Workers' share of income explains why many Americans are down on the economy

https://www.cbsnews.com/news/labor-share-income-lowest-since-world-war-ii/
1•ripe•10m ago•0 comments

Reasoning About Async Rust with State Machines

https://aibodh.com/posts/async-rust-chapter-2-what-async-fn-compiles-into/
1•febin•10m ago•0 comments

HTTP Status Codes Explained (100–599)

https://urlwatch.io/blog/http-status-codes.php
1•mssblogs•10m ago•1 comments

Mojo Quest: A browser-based game for learning Mojo syntax

https://quest.mojolang.org/
1•mdunnoconnor•11m ago•0 comments

Too many tables are bad for you

https://www.cybertec-postgresql.com/en/too-many-tables-are-bad/
1•0x54MUR41•12m ago•0 comments

Fata Morgana (Mirage)

https://en.wikipedia.org/wiki/Fata_Morgana_(mirage)
1•keiferski•12m ago•0 comments

Rendering ray tracing in a database (ClickHouse)

https://github.com/ClickHouse/RayTracer
2•sdairs•12m ago•0 comments

Out of the loop

https://saturnino.substack.com/p/out-of-the-loop
1•pramodbiligiri•12m ago•0 comments

The Grammar of Data: Define Once, Run Anywhere with Cross-Engine Expressions

https://xorq.dev/blog/grammar-for-data-engineering/
1•zazuke•13m ago•0 comments

Show HN: Debategle – ranked 1v1 debates judged by an LLM

https://debategle.com/
1•sawsymikey•13m ago•0 comments

Haversine: Turtle Graphics (Logo) on a Sphere

https://web.archive.org/web/20221203103436/https://mewo2.com/haversine/
1•srean•13m ago•1 comments

AI Compass: which archetype are you?

https://bambamramfan.github.io/ai-compass/
1•meander_water•15m ago•0 comments

KIDS Act to let govt control online speech

https://expression.fire.org/p/the-kids-act-would-put-washington
1•Volodzko•15m ago•1 comments

Transcribe.cpp – ggml based transcription engine

https://workshop.cjpais.com/projects/transcribe-cpp
3•sipjca•15m ago•0 comments

Waiting for SQL:202y: Stockholm (BMA) Meeting Report

http://peter.eisentraut.org/blog/2026/06/30/waiting-for-sql-202y-stockholm-meeting-report
1•chmaynard•16m ago•0 comments