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?

IPv8

https://openipv8.org/
1•doener•57s ago•0 comments

'Nessun Dorma': The Story Behind Pavarotti's Aria

https://www.udiscovermusic.com/classical-features/nessun-dorma-pavarotti/
1•austinallegro•1m ago•0 comments

Tencent admits GPUs only pay for themselves when powering personalized ads

https://www.theregister.com/off-prem/2026/05/14/tencent-admits-gpus-only-pay-for-themselves-when-...
1•Bender•2m ago•0 comments

Zero-day exploit defeats default Windows 11 BitLocker protections

https://arstechnica.com/security/2026/05/zero-day-exploit-completely-defeats-default-windows-11-b...
1•Bender•2m ago•0 comments

Fired hacker twins forget to end Teams recording, capture own crimes

https://arstechnica.com/tech-policy/2026/05/fired-hacker-twins-forget-to-end-teams-recording-capt...
2•Bender•3m ago•0 comments

Popish Plot

https://en.wikipedia.org/wiki/Popish_Plot
1•vinnyglennon•4m ago•0 comments

The political polarization of health outcomes in the USA

https://www.nature.com/articles/s41562-026-02474-9
1•littlexsparkee•4m ago•0 comments

Vouch-compatible PR-spam reduction GitHub Action workflow and CLI tool

https://github.com/PThorpe92/fossier
1•ellieh•6m ago•0 comments

The Revolt against I-Ready

https://www.nbcnews.com/news/education/iready-school-software-faces-parent-teacher-student-fury-r...
1•moultano•10m ago•0 comments

Scientists ID 'corkscrew killer' behind gruesome seal deaths

https://www.science.org/content/article/scientists-id-corkscrew-killer-behind-gruesome-seal-deaths
2•gmays•10m ago•0 comments

GBA Eval - Build a Game Boy Advance emulator in WebAssembly from scratch

https://gbaeval.com/
2•stared•11m ago•0 comments

A serverless image converter API using WASM on the Edge (no ImageMagick)

https://opgates.lemonsqueezy.com/checkout
1•wellscorp•12m ago•0 comments

10x more AI code is shipping on GitHub today than last year at this same time

https://loopiq.com/blog/compliance-automation
2•lkgermain•14m ago•0 comments

Subnautica 2 Early Access

https://store.steampowered.com/app/1962700/Subnautica_2/
2•accrual•16m ago•1 comments

The Worm in the Registry

https://medium.com/@vektormemory/the-worm-in-the-registry-83008d5daee0
1•vektormemory•17m ago•0 comments

Beyond C: wrapping Dear ImGui in Swift with zero FFI

https://carette.xyz/posts/swift_cpp_compatibility_with_raylib_and_imgui/
1•weird_trousers•18m ago•0 comments

Railway, Meet Milky Way: 5 Great Stargazing Trains

https://www.nytimes.com/2026/05/13/travel/stargazing-train-rides.html
1•johnbarron•18m ago•0 comments

Emodub – YouTube dubbing in your language, with emotion preserved

https://www.youtube.com/watch?v=RLWlSdf7aMQ
1•sadiuysal•19m ago•0 comments

GNUtrition 0.33.0rc2 Now Available

https://savannah.gnu.org/news/?id=10892
1•amcclure•20m ago•0 comments

Bobby Puleo 4plymag Skateboarding

https://4plymag.com/bobbypuleo/
1•marysminefnuf•25m ago•0 comments

Interactive Exploration of Scaling Options for Optical Lithography

https://www.nhurwitz.com/writing/known-scaling-options-for-euv-lithography
1•probablynoam•26m ago•0 comments

PyTorch simulator refutes an 18-year-old quantum theorem

https://github.com/lizbeth307/quantum-superactivation-refutation
1•NeoOdim•29m ago•0 comments

Court bans Kars4Kids ads in California for violating false advertising law

https://www.sfgate.com/bayarea/article/kars4kids-california-false-advertising-22259298.php
4•01-_-•29m ago•0 comments

The Interstitium, the Human Body's Hidden Pathways

https://www.nytimes.com/interactive/2026/05/11/magazine/interstitium-anatomy-acupuncture-medicine...
1•gmays•32m ago•0 comments

OVMS: Open source electric vehicle remote monitoring, diagnosis and control

https://www.openvehicles.com/home
7•BHSPitMonkey•33m ago•1 comments

Security Horror Stories

https://securityhorrors.com/
1•Einenlum•34m ago•0 comments

What's the Ideal Analogy?

https://alok.github.io/2026/04/28/whats-the-ideal-analogy/
1•yuppiemephisto•34m ago•0 comments

Godot WebGPU

https://godotwebgpu.com/
4•astlouis44•37m ago•0 comments

Show HN: Save tokens from Claude subscriptions now allowed

https://github.com/lucastononro/tiny-claude-recycler
2•ltononro•39m ago•0 comments

Interesting that Bing is down/intermittent

2•ChuckMcM•41m ago•1 comments