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 library of lost journals 603 pages novel fiction book

https://play.google.com/store/books/details/The_Library_of_Lost_Journals_The_Archivist_s_Journ?id...
1•mjbachhav•1m ago•0 comments

DDB: Source-Level Interactive Debugging for Distributed Applications

https://arxiv.org/abs/2607.06107
1•Jimmc414•1m ago•0 comments

Ask HN: How to recover from thin content or de-indexing penalty on Google

2•anitroves•2m ago•0 comments

Meta Patents AI Device That Tracks Your Emotions, Watches You Take Your Meds

https://www.404media.co/meta-patents-ai-device-that-tracks-your-emotions-watches-you-take-your-meds/
1•Jimmc414•2m ago•0 comments

Counterfeit Air-Bags Are Killing U.S. Drivers–and the Government Can't Stop It

https://www.wsj.com/business/autos/counterfeit-air-bag-parts-deaths-regulators-6eddfdd4
1•fortran77•3m ago•1 comments

Ergo: Long Form Philosophy Lectures

https://ergo.org/
1•agnishom•6m ago•0 comments

Neuromancer (TV Series) – IMDB

https://www.imdb.com/title/tt31512174/
1•evo_9•11m ago•0 comments

Two teens learn the hard way not to do toy gun drive-bys from a Waymo

https://arstechnica.com/cars/2026/07/two-teens-learn-the-hard-way-not-to-do-toy-gun-drivebys-from...
1•gbourne1•19m ago•1 comments

FIFA president targeted by complaint to Olympic ethics body

https://www.pbs.org/newshour/world/fifas-infantino-targeted-by-complaint-to-olympic-ethics-body-a...
1•Jimmc414•21m ago•0 comments

Automattic Code for the People Is Rallying Cry for Open Internet

https://variety.com/2026/digital/news/automattic-code-for-the-people-1236802508/
1•pentagrama•22m ago•0 comments

A self-driving Waymo just reports its own passengers to police

https://www.fastcompany.com/91570761/a-self-driving-waymo-just-reported-its-own-passengers-to-police
1•PaulHoule•23m ago•1 comments

Grudge: Stochastic data structure for holding multi-tenant grudges

https://github.com/satmihir/grudge
1•jscrab•24m ago•0 comments

AI models' values are different from most people's

https://www.economist.com/briefing/2026/06/25/ai-models-values-are-very-different-from-most-peoples
1•Khaine•25m ago•0 comments

Widevine

https://en.wikipedia.org/wiki/Widevine
1•gregsadetsky•26m ago•0 comments

Former Judge Hannah Dugan avoids prison, fined $5k in ICE obstruction case

https://wisconsinexaminer.com/2026/07/08/former-judge-hannah-dugan-avoids-prison-fined-5000-in-ic...
1•petethomas•27m ago•0 comments

Ask HN: Would you pay to discuss a book with an official AI clone of its author?

1•briangao•29m ago•1 comments

Show HN: SlopWatch - A browser extension to rate webpages with AI content

https://chromewebstore.google.com/detail/slopwatch-the-online-watc/nihlmmcfkabobchdpjimenhcfmaoglkj
1•HademLeFashie•33m ago•0 comments

A Theory of Contrastive Learning with Natural Images

https://arxiv.org/abs/2607.07470
2•E-Reverance•34m ago•0 comments

Google Earth Pro desktop downloads will end in 2027

https://support.google.com/earth/thread/448773864/update-on-google-earth-pro-desktop-app-download...
1•linzhangrun•39m ago•0 comments

How to Listen to a Tarantino Movie

https://hollisrobbinsanecdotal.substack.com/p/how-to-listen-to-a-tarantino-movie
1•HR01•41m ago•0 comments

The DuckDB ADBC Extension

https://columnar.tech/blog/announcing-duckdb-adbc-extension//
1•jonbaer•41m ago•0 comments

Superhero Movies Lost Their Power

https://www.statsignificant.com/p/how-superhero-movies-lost-their-power
1•jmsflknr•44m ago•0 comments

Argentina to Repay $4B, Defying Critics Who Doubted Tack

https://www.bloomberg.com/news/articles/2026-07-08/argentina-to-repay-4-billion-defying-critics-w...
1•petethomas•48m ago•0 comments

AI Stack Gap Map

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1
2•colinprince•49m ago•0 comments

Together for a Healthier Clippy

https://blog.rust-lang.org/inside-rust/2026/07/06/unite-for-clippy/
2•droidjj•49m ago•0 comments

Show HN: I mapped 8.5M research papers into an interactive atlas

https://tomesphere.com/atlas
1•leonickson•51m ago•0 comments

Show HN: Atelier - open source, honest 30% savings on Claude code.

https://github.com/atelier-ws/atelier
1•pankaj4u4m•52m ago•1 comments

What Does a 13-Year-Old See on Snapchat in a Normal Week?

https://www.afterbabel.com/p/snapchat-recommends-harmful-content-kids-brooke-istook-2026
7•dgudkov•52m ago•3 comments

Product Shape Is the Moat

https://twitter.com/scottastevenson/status/2072336746327458178
2•gmays•56m ago•0 comments

Jellyfish Undersea Roundabout

https://visitfaroeislands.com/en/plan-your-stay/getting-around/world-first-under-sea-roundabout
2•hydrogen7800•57m ago•0 comments