frontpage.
newsnewestaskshowjobs

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?

Portable SIMD is in C++26, and you can try it now

https://wrocpp.github.io/posts/portable-simd/
1•Tomte•37s ago•0 comments

What's at Stake in Serbia's Election

https://rademeechtatic.substack.com/p/whats-at-stake-in-serbias-election
1•samizdis•1m ago•0 comments

Ask HN: Linux at work revoked due to MDM, how to fight?

1•aleda145•2m ago•0 comments

Created my first app petpal

https://play.google.com/store/apps/details?id=com.nexushybrids.petpal&hl=en_US
1•Mohtasim801•8m ago•0 comments

Draggy: A Windows desktop app for local and cloud AI chat and coding

https://github.com/Lucki74/draggy
1•lucki74•10m ago•0 comments

Show HN: AI text detector that never sees your text (runs 100% in-browser)

https://kouh.me/ai-text-detector
2•mrkn1•10m ago•0 comments

Is This Machine Playing?

https://machineplaying.org/
1•DeepLogin•10m ago•0 comments

Researchers Integrate Electronics with Human Cells

https://www.umass.edu/news/article/body-electric-umass-amherst-researchers-integrate-electronics-...
1•geox•13m ago•0 comments

At Aberfan I saw father's digging for their missing children

https://www.theguardian.com/commentisfree/2026/oct/24/aberfan-disaster-missing-children-deaths-jo...
1•jimnotgym•15m ago•0 comments

Show HN: MCP server that answers Steam launch questions with real counts

1•steammaho•17m ago•0 comments

AI-Assisted Paper on Z-Library Cites a TorrentFreak Article That Doesn't Exist

https://torrentfreak.com/ai-assisted-paper-on-z-library-cites-a-torrentfreak-article-that-doesnt-...
12•TangerineDream•20m ago•0 comments

Practical Compiler Construction – Nils M Holm

https://t3x.org/reload64/index.html
2•AlexeyBrin•22m ago•1 comments

Super Mario creator breaks down the problem with AI perfectly

https://www.polygon.com/super-mario-bros-shigeru-miyamoto-ai-order-culture-japan-award-nintendo/
2•plaguna•22m ago•0 comments

US executives quit $25B gas venture over claims of secret Russian control

https://www.ft.com/content/e9cfbfbb-e65a-4303-aebb-20d59319ef1b
1•locknitpicker•22m ago•1 comments

Compromised eMudhra Intermediate Certificates

https://blog.talosintelligence.com/compromised-intermediate-certificates/
1•jruohonen•26m ago•0 comments

Google Analytics Alternative

https://lomenanalytics.com/
1•_Gustav_•29m ago•0 comments

Node.js Vulnerability Blog

https://nodejs.org/en/blog/vulnerability
4•Brysonbw•30m ago•1 comments

LiteLLM supply chain attack hoovers up passwords and secrets

https://www.theregister.com/security/2026/10/21/litellm-supply-chain-attack-hoovers-up-passwords-...
4•jruohonen•32m ago•0 comments

Mdfind Guide: macOS Spotlight Search from Terminal

https://myunix.org/macos/macos-spotlight-terminal/
3•ankitg12•33m ago•1 comments

eMudhra Intermediate CA Certificates Compromised

https://unit42.paloaltonetworks.com/emudhra-certificate-compromise/
3•Brysonbw•33m ago•0 comments

The Foundations of Scalable AI

https://www.technologyreview.com/2026/10/22/1146103/the-foundations-of-scalable-ai/
2•joozio•37m ago•0 comments

Cracking Anubis Challenges

https://jpb.dev/blog/is-anubis-a-good-solution/
2•jackpriceburns•38m ago•2 comments

Mufasa's Death

https://lopespm.com/notes/2026/10/24/mufasa_death.html
1•lopespm•42m ago•0 comments

Telstra ends Australia's long RCS wait

https://itwire.com/it-industry-news/telecoms-and-nbn/telstra-ends-australias-long-rcs-wait-androi...
3•cisc•43m ago•0 comments

Show HN: Autonomous root for Tcl Android TV via CVE-2022-22706

https://gitlab.com/c4psu13/mali-pagecache-root
2•t20n•47m ago•0 comments

Bevo Lab, Univ of Texas' plans for "the best analytics platform in sports"

https://cloud.google.com/transform/bevo-lab-u-texas-best-sports-analytics-gen-ai
1•1659447091•51m ago•0 comments

Reviewing the evidence on worker retraining programs Download the report

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
1•Klaster_1•56m ago•0 comments

Has AI made any progress as a mathematical theory-builder,,,,?

https://mathoverflow.net/questions/516336/has-ai-made-any-progress-as-a-mathematical-theory-build...
2•jjgreen•56m ago•2 comments

Crafted Brotli-compressed data can corrupt memory and execute code remotely

https://patchtheplanet.org/brotli
3•jcfrei•59m ago•0 comments

Make Yourself Replaceable

https://maroun-baydoun.com/blog/make-yourself-replaceable/
1•theHocineSaad•1h ago•0 comments