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?

Databricks Architecture Icons

https://medium.com/databrickscommunity/databricks-architecture-icons-34cce0d680f8
1•protmaks•37s ago•0 comments

El Niño may peak at the worst time for the Amazon – and it should worry us all

https://www.theguardian.com/environment/2026/aug/14/el-nino-predicted-peak-amazon-rainforest-climate
1•rbanffy•59s ago•0 comments

P2P Token Factory: Private Inference Network on Idle Macs

https://github.com/Layr-Labs/d-inference
1•TheBengaluruGuy•1m ago•0 comments

Show HN: AP – Agent Native .env

https://github.com/mergd/ap
1•wyxuan•2m ago•0 comments

The Work Number: credit score but for your employment history – by Equifax

https://employees.theworknumber.com
2•firefoxd•3m ago•0 comments

Building Without Predicting

https://sive.rs/fit
2•tosh•10m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
2•pykello•13m ago•0 comments

Over 5,200 Ebola cases recorded in Congo

https://www.afro.who.int/countries/democratic-republic-of-congo/news/over-5200-cases-recorded-dem...
4•simonebrunozzi•16m ago•0 comments

Saily Ultra eSIM Premum Plan Review: Packed with Perks

https://www.wired.com/review/saily-ultra-esim/
1•joozio•17m ago•0 comments

Seymour and Peters hit back as Luxon moves on under-16s social media ban

https://www.1news.co.nz/2026/08/24/seymour-and-peters-hit-back-as-luxon-moves-on-under-16s-social...
1•01-_-•18m ago•0 comments

I spent $200 a month to SEO-poison Google search results

https://higashi.blog/2026/08/23/api-use/
2•yuedongze•18m ago•0 comments

Casio's Bluetooth F-B100W-1A with step-tracker sells out again

https://www.notebookcheck.net/Casio-s-Bluetooth-F-B100W-1A-with-step-tracker-sells-out-again-leav...
2•01-_-•19m ago•0 comments

Andreessen Horowitz is investing billions into a bleak future

https://www.modelrepublic.org/articles/a16z-portfolio
5•reasonableklout•23m ago•0 comments

Disconnect – Tracking Leads to Hacking

https://disconnect.me/
1•janandonly•25m ago•0 comments

Hugging Face has been fielding M&A interest for a deal worth at least $13B

https://www.businessinsider.com/hugging-face-could-be-acquired-13-billion-2026-8
4•AlexDragusin•26m ago•0 comments

Show HN: Hookpost – Open-source social media scheduler with AI Agent copilot

https://github.com/jatinder14/hookpost
2•jrgupta•30m ago•1 comments

Shrink a Market (2006)

https://web.archive.org/web/20120212201947/http://redeye.firstround.com/2006/04/shrink_a_market.html
2•tosh•31m ago•0 comments

Show HN: Cryptographic logging for agents from action capture to audit reports

https://github.com/Providex-AI/rootsign
1•oabolade•32m ago•0 comments

From a Drive Away to a Walk Away: Best U.S. Cities to Live in Without a Car

https://www.coworkingcafe.com/blog/best-u-s-cities-to-live-in-without-a-car/
3•vanclaude•37m ago•0 comments

Show HN: Open-source automation for breaking up monolithic Terraform states

https://github.com/schrieksoft/demonolith
1•karlschriek•38m ago•0 comments

Show HN: OutbidLaunch – Open-Source Pay-to-Rank Leaderboard with 3D Live Globe

https://github.com/fastlaunch/outbidlaunch
1•respectattentio•38m ago•1 comments

Sloc Cloc and Code 4.0 (scc) – Finding the files that need the most attention

https://boyter.org/posts/sloc-cloc-code-hotspots-finding-files-that-need-attention/
1•boyter•44m ago•0 comments

Show HN: LongRuay – Live Like a Millionaire for 30 Days

https://longruay.com
1•QingWu•44m ago•1 comments

Investors "should be on alert" as US financial risks mount, says market expert [video]

https://www.youtube.com/watch?v=bi95w_V4bGU
5•thelastgallon•45m ago•0 comments

Anthropic Claude and API service outages

https://status.claude.com/uptime
10•vikrantrathore•47m ago•1 comments

Show HN: Brkpt-auth – NestJS authentication as source you own

https://brkpt.com/auth/
1•ilhasol•48m ago•0 comments

A 2026 Survey of Rust GUI Libraries

https://blog.wybxc.cc/blog/rust-gui-survey-2026/
1•rcarmo•48m ago•0 comments

FDA clears blood test to aid evaluation for Alzheimer's disease

https://medicine.washu.edu/news/fda-clears-blood-test-to-aid-evaluation-for-alzheimers-disease/
6•dabinat•50m ago•0 comments

Best AI voice cloning in 2026: how to clone your voice

https://nexustrade.io/blog/best-ai-voice-cloning-2026-how-to-clone-your-voice-with-ai-20260824
1•theanonymousone•50m ago•0 comments

Walgit – a Git server that is one binary in front of an object store

https://github.com/tobi/walgit
1•romanhotsiy•50m ago•0 comments