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?

Working at Cold War Los Alamos

https://doomsdaymachines.net/p/working-at-cold-war-los-alamos
1•chmaynard•2m ago•0 comments

Shifting climate boundaries for European peatlands

https://iopscience.iop.org/article/10.1088/1748-9326/ae2142
1•PaulHoule•3m ago•0 comments

Don't Gobble Up Errors

https://programming.protips.wiki/dont-gobble-up-errors/
1•markl42•4m ago•0 comments

Cadbury Ruined Its Taste and Betrayed Britain [video]

https://www.youtube.com/watch?v=-dIAqAcEiDY
2•076ae80a-3c97-4•6m ago•0 comments

Every Meeting Should Start on Time (If You Want It to Be Productive)

https://www.inc.com/jeff-haden/science-says-every-meeting-should-always-start-on-time-if-you-want...
1•laurex•8m ago•0 comments

Sanity Check Documents with Riftur

https://5iprojects.com/mind-the-gap-part-ii-introducing-riftur-our-first-ai-gap-analysis-tool-for...
2•jcitsme•19m ago•0 comments

Wine 11.0 RC2 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0-rc2
4•neustradamus•23m ago•0 comments

GCP Error Fixing Bot

https://medium.com/@paulmcdonald/we-built-a-bot-that-reads-our-production-errors-and-opens-prs-wi...
1•pmmucsd•25m ago•0 comments

Show HN: Tiny VM sandbox in C with apps in Rust, C and Zig

https://github.com/ringtailsoftware/uvm32
3•trj•26m ago•0 comments

Ask HN: Go all-in on AI Boom vs. enjoy parenthood?

4•pratchett•26m ago•3 comments

Show HN: VoiceGrab – Free voice-to-text for Windows using Groq Whisper

https://github.com/consulfedor/VoiceGrab
2•consulfedor•28m ago•0 comments

Pentagon Unveils New GenAI Platform, It Flags Hegseth's War Crimes

https://abovethelaw.com/2025/12/pentagon-unveils-new-genai-platform-it-immediately-starts-flaggin...
3•MBCook•29m ago•0 comments

Immigration Agents Are Using Air Passenger Data for Deportation Effort

https://www.nytimes.com/2025/12/12/us/politics/immigration-tsa-passenger-data.html
2•mikhael•32m ago•0 comments

Realtime Interactive AI Videos

https://experience.odyssey.ml/
2•oldfuture•33m ago•0 comments

Meta's New A.I. Superstars Are Chafing Against the Rest of the Company

https://www.nytimes.com/2025/12/10/technology/meta-ai-tbd-lab-friction.html
5•bookofjoe•41m ago•2 comments

What kind of person is DeepSeek's founder, Liang Wenfeng?

https://lmsherlock.substack.com/p/what-kind-of-person-is-deepseeks
2•lawrenceyan•41m ago•0 comments

Closures as Win32 Window Procedures

https://nullprogram.com/blog/2025/12/12/
2•ingve•42m ago•0 comments

WebKit Features for Safari 26.2

https://webkit.org/blog/17640/webkit-features-for-safari-26-2/
2•enz•46m ago•0 comments

Capsudo: Rethinking Sudo with Object Capabilities

https://ariadne.space/2025/12/12/rethinking-sudo-with-object-capabilities.html
2•fanf2•46m ago•0 comments

Speck.js – An AI-native web framework with zero imports

https://speckjs.dev/
1•SpeckOs•47m ago•1 comments

Stratolaunch Systems

https://en.wikipedia.org/wiki/Stratolaunch_Systems
2•rolph•54m ago•1 comments

How I rehumanize the college classroom for the AI-augmented age

https://theconversation.com/how-i-rehumanize-the-college-classroom-for-the-ai-augmented-age-269168
2•eatonphil•57m ago•0 comments

How long does it take to get an EIN?

https://www.clerky.com/irs-ein-processing-times
2•swampthing•57m ago•0 comments

Can a slow-release bolus crack methane reduction for pasture raised cattle?

https://agfundernews.com/can-a-slow-release-bolus-crack-methane-reduction-for-pasture-raised-catt...
3•rmason•58m ago•1 comments

Runmat

https://runmat.org
3•limbicsystem•58m ago•0 comments

Are we stuck with the same Desktop UX forever? [video]

https://www.youtube.com/watch?v=1fZTOjd_bOQ
1•dsego•58m ago•0 comments

Footage appears to show aircraft larger than football field soaring over Calif

https://www.sfgate.com/bayarea/article/footage-aircraft-larger-football-field-california-21237276...
5•toomanyrichies•59m ago•2 comments

Living Particle System

https://creative-art-points.vercel.app/
2•lovegrenoble•59m ago•0 comments

DNS

3•code_Whisperer•59m ago•6 comments

Show HN: I built a GitHub application that generates documentation automatically

https://codesummary.io
3•jerrodcodes•1h ago•1 comments