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

Show HN: A vdom-less framework that's local first

https://github.com/terajs/terajs
1•thecodergabe•26s ago•0 comments

AI Tips and Tricks

https://www.youtube.com/watch?v=w_m5RmVsmtE
1•frag•1m ago•0 comments

Show HN: ChatToMap – Scans your chats to find all your activity and trip ideas

https://chattomap.com
1•nathan_f77•4m ago•0 comments

Kolmogorov Complexity [video]

https://www.youtube.com/watch?v=UGN9D0n4AJA
1•sgschlesinger•5m ago•0 comments

10x Faster Real-Time High-Quality AI Video Generation

https://tenstorrent.com/solutions/real-time-video
1•montyanderson•8m ago•0 comments

LLM Summaries Are Ruining Your Learning

https://arpitbhayani.me/blogs/do-not-rely-on-summaries/
1•menonNN•9m ago•0 comments

AI and the Future of News 2026

https://reutersinstitute.politics.ox.ac.uk/news/ai-and-future-news-2026-what-we-learnt-about-its-...
1•jruohonen•10m ago•0 comments

What do you think of people buying Mac mini's to run AI?

1•namegulf•18m ago•1 comments

Task-Specific LLM Evals That Do and Don't Work

https://eugeneyan.com/writing/evals/
1•eigenBasis•20m ago•0 comments

Mark Zuckerberg Says AI Costs Contributed to Layoffs of 8k Staffers

https://www.forbes.com/sites/antoniopequenoiv/2026/04/30/mark-zuckerberg-says-ai-costs-contribute...
2•ZeidJ•23m ago•0 comments

Workforce Transparency Act [pdf]

https://www.warner.senate.gov/wp-content/uploads/2026/04/Warner.-Budd-Workforce-Transparency-Act.pdf
1•petethomas•23m ago•0 comments

Call centres dismantled and ten arrested in EUR 50 million online fraud case

https://www.europol.europa.eu/media-press/newsroom/news/call-centres-dismantled-and-ten-arrested-...
1•jruohonen•24m ago•0 comments

C8s: A Confidential Kubernetes Architecture

https://arxiv.org/abs/2604.26974
2•badcryptobitch•25m ago•0 comments

Keep your agents updated with latest in your libraries

https://library-skills.io/
1•ankitg12•26m ago•0 comments

Ask HN: In the age of AI do we need to learn how to code?

1•JasonHEIN•30m ago•1 comments

OpenAtom Foundation

https://en.wikipedia.org/wiki/OpenAtom_Foundation
1•gfalcao•31m ago•0 comments

Product market fit isn't a stage, it's a gauntlet

https://jonno.nz/posts/product-market-fit-is-a-gauntlet/
1•halger•32m ago•0 comments

Dividing 1 by 998,001 Yields a Very Strange Decimal

https://brilliantlearning.in/dividing-1-by-998001-yields-a-very-strange-decimal/
4•thunderbong•34m ago•0 comments

AWS Will Be an OEM, Just Like Google and Maybe Microsoft

https://www.nextplatform.com/cloud/2026/04/30/aws-will-be-an-oem-just-like-google-and-maybe-micro...
1•rbanffy•36m ago•0 comments

PrivClaw – Open-source self-hostable AI plugin marketplace (FastAPI and Next.js)

https://github.com/geneleo537-afk/privclaw
1•GeneLeo•36m ago•0 comments

CLI based issue tracker TUI – distributed and backed by Git

https://github.com/ljtn/epiq
1•tjek•36m ago•0 comments

The Many Forms of Marcel Duchamp

https://www.newyorker.com/magazine/2026/05/04/marcel-duchamp-art-review-moma
1•petethomas•42m ago•0 comments

LLMs Don't Quite Beat Classical Hyperparameter Optimization Algorithms

https://github.com/ferreirafabio/autoresearch-automl
3•achierius•43m ago•2 comments

All the Sad Young Chinese Professionals

https://www.theatlantic.com/international/2026/04/china-loneliness-epidemic/686994/
3•petethomas•45m ago•0 comments

Thoughts on WebAssembly as a Stack Machine

https://eli.thegreenplace.net/2026/thoughts-on-webassembly-as-a-stack-machine/
2•mfrw•45m ago•0 comments

A Dab of DuckDB

https://peterdohertys.website/blog-posts/dab-of-duck.html
2•vismit2000•48m ago•0 comments

Poolr – shared photo albums for events, no app required for guests

https://www.getpoolr.com/
1•SupaMRVL•53m ago•0 comments

Maybe you should learn something

https://www.marginalia.nu/log/a_135_learn/
3•latexr•54m ago•0 comments

Our Wilderness Areas Are in Danger

https://apnews.com/article/mining-moratorium-trump-boundary-waters-permits-3d32cd0f591e0de0bfa3a8...
2•MrChoke•54m ago•0 comments

Stripe link-CLI: Let your agents spend on your behalf

https://github.com/stripe/link-cli
1•tjek•59m ago•0 comments