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•7mo 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•7mo 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?

I launched a free podcast mastering tool and it hit #1 on Google

https://freepodcastmastering.com
1•pruufsocial•2m ago•1 comments

Show HN: AI that scores news for emotional coercion and rhetorical manipulation

https://www.goanie.com/
1•goshtasb•3m ago•1 comments

Magnitude-7.0 earthquake hits in remote wilderness along Alaska-Canada border

https://apnews.com/article/earthquake-alaska-canada-yukon-7c0f68370e387b1b23fa7fe7fc9c2c71
4•appreciatorBus•6m ago•0 comments

Ask HN: Is Mythical Man-Month still relevant in todays AI Vibe Coding world?

2•Codegres•14m ago•4 comments

Project Bhavanga: Fixing LLM Context Dilution with Buddhist Psychology

2•DosankoTousan•20m ago•1 comments

The Medusa compiler: create interactive ebooks

https://www.erix.it/medusa.html
1•znpy•21m ago•0 comments

The Heist of Nearly 1/2 Ton of Its Culinary Crown Jewels Rocks French Village

https://www.nytimes.com/2025/12/04/world/europe/france-escargot-heist.html
1•bookofjoe•23m ago•1 comments

Moving Off of Netlify to Self Hosted

https://broderic.blog/post/moving-away-from-netlify/
1•Group_B•24m ago•0 comments

SedaiBasic2: A modern reimplementation of Commodore BASIC v7

https://github.com/camauri/SedaiBasic2
1•amichail•26m ago•0 comments

Introducing Proton Sheets: Protect the data that drives your business

https://proton.me/blog/sheets-proton-drive
2•akyuu•26m ago•0 comments

Aristotle from HarmonicMath has solved Erdős Problem 124 in LEAN

https://xenaproject.wordpress.com/2025/12/05/formalization-of-erdos-problems/
1•unprovable•26m ago•0 comments

Show HN: FuseCells – a handcrafted logic puzzle game with 2,500 levels

https://apps.apple.com/us/app/fusecells-logic-grid-puzzle/id6754704139
4•keini•27m ago•1 comments

Empirical data on human chain-of-thought: 100 thought intrusions, one stopwatch

https://doi.org/10.13140/RG.2.2.14609.08800
3•Fanaxuki•27m ago•1 comments

Petit Louis – Baby tracker that predicts when your baby will nap

https://apps.apple.com/us/app/petit-louis-baby-tracker/id6754668538
1•sfl83•27m ago•1 comments

A fork of Calibre called Clbre, because the AI is stripped out

https://github.com/grimthorpe/clbre
3•pabs3•28m ago•0 comments

Former deep-cover Russian spy leads Moscow campaign to co-opt Indian tech

https://www.msn.com/en-us/news/world/former-deep-cover-russian-spy-leads-moscow-campaign-to-co-op...
1•MilnerRoute•30m ago•0 comments

Show HN: Watsn.ai – Scarily accurate lie detector

https://watsn.ai/
2•flx1012•30m ago•0 comments

Deep Dive in Java vs. C++ Performance

https://johnnysswlab.com/deep-dive-in-java-vs-c-performance/
2•ingve•31m ago•0 comments

OpenTelemetry Distribution Builder

https://github.com/observIQ/otel-distro-builder
2•pveierland•37m ago•1 comments

Kilauea erupts, destroying webcam [video]

https://www.youtube.com/watch?v=TK2N99BDw7A
21•zdw•39m ago•2 comments

Updating Rust's Linux musl targets to 1.2.5

https://blog.rust-lang.org/2025/12/05/Updating-musl-1.2.5/
1•ingve•41m ago•0 comments

The Resonant Computing Manifesto

https://resonantcomputing.org/
1•tlarkworthy•42m ago•0 comments

Kenyans lured by lucrative job offers and sent to fight for Russia

https://www.bbc.com/news/articles/c20gn2d51l1o
3•breve•42m ago•0 comments

PatchworkOS: An OS for x86_64, built from scratch in C and assembly

https://github.com/KaiNorberg/PatchworkOS
6•pykello•45m ago•1 comments

Repurposed Drugs for Covid [video]

https://www.youtube.com/watch?v=2_wKXWaMdEM
1•alex1138•45m ago•0 comments

Ask HN: What is the Bootstrap/Tailwind equivalent for SwiftUI?

1•takinola•51m ago•0 comments

Celbridge: Edit spreadsheets and write Python scripts side-by-side

https://github.com/celbridge-org/celbridge
1•noodlebird•51m ago•1 comments

Show HN: Online version of Teeko, of Guy L. Steele fame

https://teeko.cc
2•ptramo•55m ago•0 comments

The Müller-Lyer Illusion in Ant Foraging

https://pmc.ncbi.nlm.nih.gov/articles/PMC3859535/
2•mudil•55m ago•0 comments

Railroads will be allowed to reduce inspections and rely more on technology

https://apnews.com/article/automated-railroad-track-inspections-waiver-derailments-fra-d3c4b0f313...
4•geox•55m ago•1 comments