frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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 Disappearance of the Public Bench

https://placesjournal.org/article/the-disappearance-of-the-public-bench/
2•cainxinth•2m ago•0 comments

This Month in Redox – April 2026

https://www.redox-os.org/news/this-month-260430/
1•ladyanita22•3m ago•0 comments

Number of tokens shouldn't be the only metric

https://johnjwang.com/post/2026/05/06/tokens-shouldnt-be-the-only-metric/
1•johnjwang•5m ago•0 comments

Audio-only minimal pair trainer using ABX methodology for language acquisition

https://minimalpairs.co
1•michealbingham•6m ago•1 comments

Designing AI for Strategy Games Through Modding

https://anbeeld.com/articles/designing-ai-for-strategy-games-through-modding
2•nateberkopec•11m ago•0 comments

I found a bug in the reality lattice

https://osf.io/5ubr7
1•KIHO_LEE•13m ago•0 comments

Syncweb, Literate Programming Meets Unison

https://github.com/aryx/syncweb
1•tmseidman•13m ago•0 comments

Google Chrome downloads 4GB AI model to your device without permission

https://www.tomshardware.com/tech-industry/cyber-security/google-chrome-silently-downloads-4gb-ai...
1•vednig•14m ago•0 comments

Untangling Entanglement: Does Science Support Physicalism?

https://sopathaye.substack.com/p/untangling-entanglement-does-science
1•sopathaye•20m ago•0 comments

AI-Induced Cognitive Atrophy

https://notesbylex.com/on-ai-induced-cognitive-atrophy
1•lexandstuff•23m ago•0 comments

VLC, FFmpeg, Video Codecs, Assembly Programming (Lex Fridman Podcast)

https://www.youtube.com/watch?v=nepKKz-MzFM
1•SweetSoftPillow•26m ago•0 comments

Judge Halts Colorado AI Law After xAI First Amendment Challenge

https://reclaimthenet.org/judge-halts-colorado-ai-law-after-first-amendment-challenge
4•bilsbie•32m ago•0 comments

Macro

https://macro.com
2•skogstokig•32m ago•0 comments

Sting's eye-watering fortune that his 6 kids won't be inheriting

https://www.hellomagazine.com/us/900095/sting-eye-watering-fortune-kids-will-not-inherit/
1•wslh•33m ago•0 comments

AI evaluation startup Braintrust confirms breach

https://techcrunch.com/2026/05/06/ai-evaluation-startup-braintrust-confirms-breach-tells-every-cu...
3•zachdotai•35m ago•0 comments

ReleaseJet – the release notes tool for repos with many customers

https://github.com/makisp/releasejet
2•PaulHoule•38m ago•0 comments

Omega-3 supplements may be linked to faster cognitive decline in seniors

https://medicalxpress.com/news/2026-05-omega-supplements-linked-faster-cognitive.html
1•brandonb•38m ago•1 comments

VirtualGL

https://virtualgl.org
2•NexRebular•39m ago•0 comments

SQLite Is a Library of Congress Recommended Storage Format

https://sqlite.org/locrsf.html
3•whatisabcdefgh•39m ago•0 comments

Show HN: I wrote a flight simulator in my own programming language

https://github.com/navid-m/flightsim
3•pizza_man•40m ago•2 comments

AI, Computer Literacy, and the New Divide

https://blog.vaxry.net/articles/2026-aiIsABitDifferent
2•tertle950•40m ago•2 comments

Rails Security, AI, and IBB

https://tenderlovemaking.com/2026/05/06/rails-security-ai-and-ibb/
1•riffraff•41m ago•0 comments

Firm solar and storage costs fall to $54/MWh, says IRENA

https://www.pv-magazine.com/2026/05/06/firm-solar-and-storage-costs-fall-to-54-mwh-says-irena/
4•epistasis•42m ago•0 comments

Solod v0.1: Go ergonomics, practical stdlib, native C interop

https://antonz.org/solod-v0-1/
1•jicea•42m ago•0 comments

"Would It Matter If I Told You I'm Pope Leo?"

https://www.thelettersfromleo.com/p/would-it-matter-if-i-told-you-im
1•pella•47m ago•1 comments

CSG: Why the Largest Military IPO in European History Is Combusting

https://hntrbrk.com/csg/
2•yread•48m ago•0 comments

It's time to test all adults for lipoprotein(a)

https://www.lipidjournal.com/article/S1933-2874(26)00126-1/fulltext
2•brandonb•52m ago•1 comments

Claude Code wire trace reveals 13,000 words base prompt

https://twitter.com/dominiek/status/2052119211644760473
4•dominiek•52m ago•1 comments

Agile Is Dead. Long Live Agile

https://amoebaunlimited.substack.com/p/agile-is-dead-long-live-agile
3•bryanking•54m ago•0 comments

CrustAI – Private local AI assistant

https://github.com/DaveSimoes/CrustAI
2•DaveHN_2026•54m ago•0 comments