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

9M730 Burevestnik

https://en.wikipedia.org/wiki/9M730_Burevestnik
1•latchkey•1m ago•0 comments

Merge and Conquer: Evolutionarily Optimizing AI for 2048

https://arxiv.org/abs/2510.20205
1•xianshou•1m ago•0 comments

Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models

https://arxiv.org/abs/2510.20198
1•xianshou•2m ago•0 comments

Hyperbolic Non-Euclidean World (2007)

http://web1.kcn.jp/hp28ah77/
1•ubavic•14m ago•0 comments

Putting the "You" in CPU (2023)

https://cpu.land/
2•signa11•14m ago•1 comments

Milei Wins Mandate for Free-Market Revolution in Argentina's Election

https://www.wsj.com/world/americas/milei-wins-mandate-for-free-market-revolution-in-argentinas-el...
1•JumpCrisscross•16m ago•0 comments

Guns n Roses' Appetite for Destruction LP Challenger Disaster Edition

https://www.tomdunnart.com/appetite
1•JumpinJack_Cash•18m ago•0 comments

Oz Labor Gov rules out giving tech giants free rein to mine IPR to train AI

https://www.theguardian.com/technology/2025/oct/27/labor-rules-out-giving-tech-giants-free-rein-t...
2•ggm-at-algebras•28m ago•0 comments

ICE Will Use AI to Surveil Social Media

https://jacobin.com/2025/10/ice-zignal-surveillance-social-media
3•throwaway81523•30m ago•0 comments

China released UBIOS to replace UEFI standard

https://www.tomshardware.com/software/china-releases-ubios-standard-to-replace-uefi-huawei-backed...
3•vincentchau•42m ago•0 comments

Should You Take on Software Modernization Projects?

https://medium.com/@HobokenDays/software-modernization-projects-dilemma-4bd96f3c6502
1•steven86•46m ago•0 comments

Microsoft in court for misleading Australians over Microsoft 365 subscriptions

https://www.accc.gov.au/media-release/microsoft-in-court-for-allegedly-misleading-millions-of-aus...
3•bigfatkitten•48m ago•1 comments

Chaldean Aramaic Words [pdf]

https://aramaicproject.com/StaticFiles/docs/pdf/Chaldean_Language_Course.pdf
2•marysminefnuf•50m ago•0 comments

Using Homebrew to Distribute Early Access Binaries from Private GitHub Reposito

https://lgug2z.com/articles/using-homebrew-to-distribute-early-access-binaries-from-private-githu...
1•todsacerdoti•50m ago•0 comments

Microsoft Accused of Misleading Australians

https://www.smh.com.au/business/consumer-affairs/microsoft-accused-of-misleading-millions-of-aust...
1•femto•51m ago•0 comments

"use php"

https://twitter.com/RicardoSawir/status/1982212646951624748
1•sawirricardo•53m ago•1 comments

Concurrency Step-by-Step: Conforming to Protocols

https://www.massicotte.org/step-by-step-conforming-to-protocols
1•ashvardanian•54m ago•0 comments

Ask HN:A editor'd do word highlighting and correct RTL language?

2•dogol•56m ago•1 comments

Shielding energy consumers from data centre whiplash – Australia

https://theenergy.co/article/shielding-mums-and-dads-from-data-centre-whiplash
1•langfo•59m ago•0 comments

Fluxwing: ASCII-first UX design system with derivation model

https://fluxwing.com
2•tranqy•1h ago•1 comments

Vibe Coding in Google AI Studio

https://blog.google/technology/developers/introducing-vibe-coding-in-google-ai-studio/
4•meetpateltech•1h ago•0 comments

Who Is Satoshi Nakamoto? A New Book Investigates Bitcoin's Creator

https://reason.com/2025/10/24/the-mysterious-mr-nakamoto/
2•nomilk•1h ago•0 comments

How I turned Zig into my favorite language to write network programs in

https://lalinsky.com/2025/10/26/zio-async-io-for-zig.html
3•0x1997•1h ago•0 comments

We type more than ever – but it's not taught

https://www.typequicker.com/blog/we-type-more-than-ever-but-its-not-taught
1•absoluteunit1•1h ago•1 comments

OpenAI and Anthropic vs. app developers: tech's chronos syndrome

https://economist.com/business/2025/10/23/openai-and-anthropic-v-app-developers-techs-cronos-synd...
1•miltava•1h ago•0 comments

What happens in your brain when you change your mind?

https://www.rnz.co.nz/life/wellbeing/what-happens-in-your-brain-when-you-change-your-mind
4•billybuckwheat•1h ago•0 comments

ACCC sues over Microsoft 365 subscription hikes allegedly misleading Australians

https://www.abc.net.au/news/2025-10-27/accc-sues-microsoft-allegedly-misleading-365-subscriptions...
9•evolve2k•1h ago•1 comments

Will AI stretch our minds–or stunt them?

https://www.theatlantic.com/ideas/archive/2025/10/ai-deskilling-automation-technology/684669/
1•fortran77•1h ago•2 comments

Cancer has a surprising amount of detail

https://www.owlposting.com/p/cancer-has-a-surprising-amount-of
3•crescit_eundo•1h ago•0 comments

Graffiti: An Ecosystem of Personalized and Interoperable Social Applications

https://dl.acm.org/doi/10.1145/3746059.3747627
2•PaulHoule•1h ago•0 comments