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?

Collapse of Personal Computing – Investigation into the Destruction of Ownership [video]

https://www.youtube.com/watch?v=zyQwAhppWj8
1•caustic•49s ago•0 comments

Staged Publishing for NPM Packages

https://docs.npmjs.com/staged-publishing/
1•mooreds•1m ago•0 comments

Professional Dual-Sided Monitors

https://www.philips.co.uk/c-m-so/monitors/dual-sided
1•speckx•2m ago•0 comments

What is a harmonic? An interactive comic about additive synthesis

https://melatonin.dev/additive-synth-comic/what-is-a-harmonic/
2•birdculture•3m ago•0 comments

What if you dropped a bowling ball in the Mariana Trench? [video]

https://www.youtube.com/watch?v=FYoHYq8VRt0
2•skibz•9m ago•0 comments

Poison Your Data

https://skuka.online/poison-your-data/
2•speckx•9m ago•0 comments

Driving Porsche's most powerful car–and no, it's not a 911

https://arstechnica.com/cars/2026/05/porsches-cayenne-coupe-electric-brings-formula-e-tech-to-the...
1•canucker2016•9m ago•0 comments

How to Think About Longevity Interventions

https://olafurpall.substack.com/p/how-to-think-about-longevity-interventions
1•kkoncevicius•10m ago•0 comments

1-Bit and Ternary Bonsai Image 4B: Image Generation for Local Devices

https://prismml.com/news/bonsai-image-4b
2•xenova•10m ago•0 comments

Why Scientists Retired the Dire Climate Scenario Used for over a Decade

https://www.nytimes.com/2026/05/26/climate/emissions-worst-case-scenario-rcp.html
2•zzzeek•10m ago•0 comments

Vtermux

https://www.mcpantz.org/blog/2026/05/24/introducing-vtermux/
1•angelixd•10m ago•0 comments

Is It Impossible to Cool a Datacenter in Space? (Scott Manley) [video]

https://www.youtube.com/watch?v=FlQYU3m1e80
1•fooker•10m ago•1 comments

AskMingLi: AI-assisted BaZi chart readings

https://askmingli.com
1•corleylun•11m ago•0 comments

SafeDeps – a local dependency safety gate for Python/NPM/NuGet

https://github.com/jaydemks/SafeDeps
1•jaydemks•13m ago•0 comments

Coworkers Producing Shit Code

2•GamingAtWork•13m ago•1 comments

Talking Heads from the Year 2053 – Episode Zero [video]

https://www.youtube.com/watch?v=wokyfBA7lbY
1•deadprogram•17m ago•0 comments

LightScribe

https://en.wikipedia.org/wiki/LightScribe
1•skibz•17m ago•0 comments

Show HN: Flow Simulator – GitHub Flow vs. trunk-based development side by side

https://mainline.dev/flow-simulator
1•natyoung•18m ago•0 comments

A New Consciousness of Mathematics

https://apoorvapanidapu.substack.com/p/a-new-consciousness-of-mathematics
1•digital55•19m ago•0 comments

Musk's Grandiose Media Ambitions Are Now a Real Threat to Some Major Players

https://www.hollywoodreporter.com/business/business-news/elon-musk-spacex-media-ambitions-x-adver...
4•thm•20m ago•0 comments

AI Isn't Management. Try Explaining That to Matthew Prince

https://www.programmablemutter.com/p/ai-isnt-management-try-explaining
3•cratermoon•21m ago•0 comments

The Cost of Correctness

https://velocitycurve.substack.com/p/the-cost-of-correctness
1•mooreds•21m ago•0 comments

Modern Blu-ray drives can now rip GameCube, Wii, and Xbox 360 games to PC

https://www.tomshardware.com/video-games/console-gaming/modern-blu-ray-drives-can-now-rip-gamecub...
4•01-_-•21m ago•0 comments

Casper Serial Arsonist Who Says He Tries to 'Burn the Pain' Gets 6-12 Years

https://cowboystatedaily.com/2026/05/26/casper-serial-arsonist-who-says-he-tries-to-burn-the-pain...
2•Bender•21m ago•0 comments

Chinese GPU maker sells out over 30k GPUs within 48h

https://www.tomshardware.com/pc-components/gpus/chinese-gpu-maker-sells-out-over-30-000-gaming-gp...
3•0x1ceb00da•22m ago•1 comments

Cheers.fan #1 – Founding Infrastructure Engineers

1•Eastman_Russell•22m ago•0 comments

Moon Base

https://www.nasa.gov/moonbase/
5•big_toast•23m ago•4 comments

Disrupting Glassworm: Inside CrowdStrike's Takedown of a Dev-Targeting Botnet

https://www.crowdstrike.com/en-us/blog/inside-crowdstrike-takedown-of-a-developer-targeting-botnet/
2•chillax•23m ago•0 comments

Nvidia is finally ditching its iconic Control Panel after 20 years

https://www.tomshardware.com/pc-components/gpus/nvidia-is-finally-ditching-its-iconic-control-pan...
3•01-_-•23m ago•0 comments

Keyboard Latency Probe

https://xkqr.org/bellwether/keyboardtest.html
1•kqr•23m ago•0 comments