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

The Accursèd Alphabetical Clock

https://boat.horse/clock/index.html
1•ohjeez•4m ago•0 comments

Not Even Noise-Cancelling Headphones Can Block This Bicycle Bell

https://www.carscoops.com/2026/04/skoda-duobell-anc/
1•ohjeez•8m ago•0 comments

Ask HN: What's with the Wargames-like UX lately?

2•beatthatflight•9m ago•1 comments

Why QA and Cyber Security Matter More Than Ever [video]

https://www.youtube.com/watch?v=4K2p7eXAYTM
1•taleodor•9m ago•0 comments

Woman with three deadly diseases has 'remarkable' recovery after cell therapy

https://www.theguardian.com/science/2026/apr/09/autoimmune-diseases-cell-therapy-immune-reset
3•gmays•12m ago•0 comments

Sheaf, a minimal custom 65% keyboard

https://github.com/nxrmqlly/sheaf65
1•sadeshmukh•12m ago•0 comments

Show HN: Memwright – Self-hosted memory for multi-agent teams, no LLM in path

https://github.com/bolnet/agent-memory
1•Bolnet•12m ago•0 comments

Understanding the FFT Algorithm (2013)

https://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/
1•peter_d_sherman•14m ago•0 comments

FL man arrested for running multi-state Ponzi scheme, defrauding victims in MA

https://www.boston25news.com/news/local/florida-man-arrested-running-multi-state-ponzi-scheme-def...
1•1vuio0pswjnm7•22m ago•0 comments

Ask HN: Apple force-updated me to Tahoe. Worth fighting?

2•strogonoff•28m ago•2 comments

Keynot – Kill PowerPoint with HTML

https://github.com/shawnzam/keynot
2•shawnzam•38m ago•0 comments

Dependency cooldowns turn you into a free-rider

https://calpaterson.com/deps.html
2•pabs3•40m ago•0 comments

One size fits none: let communities build for themselves

https://werd.io/one-size-fits-none-let-communities-build-for-themselves/
1•benwerd•40m ago•0 comments

Glyphosate resistance: a driver for multidrug-resistant clinical strains?

https://www.frontiersin.org/journals/microbiology/articles/10.3389/fmicb.2026.1740431/full
1•PaulHoule•42m ago•0 comments

Gauss' Secret Way to Calculate π Faster [video]

https://www.youtube.com/watch?v=7qiDDhIYx48
1•peter_d_sherman•43m ago•1 comments

Not all elementary functions can be expressed with exp-minus-log

https://www.stylewarning.com/posts/not-all-elementary/
2•mmastrac•44m ago•0 comments

Show HN: StockFit API – structured SEC EDGAR data with a free tier

https://developer.stockfit.io
1•areimann•50m ago•1 comments

The GNU libc atanh is correctly rounded

https://inria.hal.science/hal-05591661
2•matt_d•56m ago•0 comments

Google Arts and Culture

https://artsandculture.google.com/
2•satvikpendem•1h ago•0 comments

How to recover from a Git force push

https://gist.github.com/tomj/758d16b7f8e474035db72688663bb3cb
2•nstj•1h ago•0 comments

Adam Tooze: Electrostates, Petrostates and the New Cold War [video]

https://www.youtube.com/watch?v=gLnxzkiB-GI
2•verdverm•1h ago•0 comments

The Legend of Meir Berliner

https://www.serargentino.com/en/people/urban-legends/the-legend-of-meir-berliner
1•wslh•1h ago•0 comments

Social media age limits: Well intentioned but ineffective?

https://www.dw.com/en/do-social-media-age-limits-work-tiktok-instagram-cyberbullying-depression-k...
2•pseudolus•1h ago•0 comments

OpenAI's $852B valuation faces investor scrutiny amid strategy shift, FT reports

https://www.reuters.com/legal/transactional/openai-investors-question-852-billion-valuation-strat...
38•abdelhousni•1h ago•30 comments

The Many Faces of Claude

https://eriskii.net/projects/claude-faces
4•TheAceOfHearts•1h ago•0 comments

Ask HN: When you get a SAST finding, what's harder

2•kirumachi•1h ago•1 comments

Sony killing features for antenna, set-top box users of Bravia smart TVs in May

https://arstechnica.com/gadgets/2026/04/sony-killing-features-for-antenna-set-top-box-users-of-br...
2•canucker2016•1h ago•0 comments

"The Last Airbender" movie leaked 9 months before release date

https://nofilmschool.com/full-length-avatar-movie-leaks
2•tennysont•1h ago•2 comments

What do you want out of a coding monospace font?

1•d0able•1h ago•4 comments

The Mythos Threshold

https://joereis.substack.com/p/the-mythos-threshold
2•gmays•1h ago•1 comments