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?

Transformer Architectures as Complete Bayes Processes

https://arxiv.org/abs/2606.30440
1•measurablefunc•1m ago•0 comments

Show HN: Open-source and AI native web analytics

https://github.com/OpenLabs-so/openanalytics
2•rahulbridge•1m ago•0 comments

Six Facts about the Recent Employment Effects of Artificial Intelligence

https://digitaleconomy.stanford.edu/publication/canaries-in-the-coal-mine-six-facts-about-the-rec...
1•paulpauper•4m ago•0 comments

We urgently need a coherent national AI cybersecurity policy

https://joshuasaxe181906.substack.com/p/we-urgently-need-a-coherent-national
1•paulpauper•4m ago•0 comments

Racket v9.3

https://blog.racket-lang.org/2026/08/racket-v9-3.html
3•privong•4m ago•0 comments

She Makes the Impossible Happen for Her Ultrarich Clients

https://www.nytimes.com/2026/08/09/style/olivia-ferney-top-tier-travel.html
1•paulpauper•4m ago•0 comments

Hex Supply Customer Support Log

https://strangehorizons.com/wordpress/poetry/hex-supply-customer-support-log/
1•BiraIgnacio•5m ago•0 comments

About Tibo's Reset

https://zrainbow.substack.com/p/about-tibos-resets
1•ZRainbow•5m ago•0 comments

2026 Hugo Awards

https://www.thehugoawards.org/hugo-history/2026-hugo-awards/
1•BiraIgnacio•5m ago•0 comments

Free Speech VPS Providers Put to the Test

https://crippled.media/article/free-speech-vps-providers-put-to-the-test
1•Cider9986•7m ago•0 comments

A whale's dive shapes its song

https://www.eurekalert.org/news-releases/1138432
1•gmays•7m ago•0 comments

Tokens per second visualized as the programming language balls

https://kylejeong.com/inference-balls
1•Kylejeong21•7m ago•0 comments

List of predictions for autonomous Tesla vehicles by Elon Musk

https://en.wikipedia.org/wiki/List_of_predictions_for_autonomous_Tesla_vehicles_by_Elon_Musk
3•ceejayoz•9m ago•0 comments

Two flights, one call sign: ATC resolves dangerous situation in Phoenix

https://www.flightradar24.com/blog/aviation-news/two-flights-one-call-sign-atc-resolves-dangerous...
1•berkeleyjunk•9m ago•0 comments

Millions sent wildfire emergency phone alert

https://www.bbc.co.uk/news/live/cmdx7p1q02yrt
3•basisword•9m ago•1 comments

Need Help Learning Assembly

1•kilyo•11m ago•0 comments

The Engineering State? [Book Review – Breakneck, by Dan Wang]

https://www.onethousandmeans.com/p/the-engineering-state
1•alexeigannon•11m ago•0 comments

The Soviets Drilled the Deepest Hole Ever

https://nautil.us/the-soviets-drilled-the-deepest-hole-ever-1283561
2•anarbadalov•12m ago•0 comments

Apple proposes to take a 15% cut of purchases made outside the App Store

https://techcrunch.com/2026/08/14/apple-proposes-to-take-a-15-cut-of-purchases-made-outside-the-a...
7•sbulaev•12m ago•1 comments

Emergency alerts sent to millions across England over threat of wildfires

https://news.sky.com/story/uk-heatwave-stourbridge-fire-latest-weather-live-13571553
2•GaryBluto•12m ago•0 comments

Sigilo da fonte – – nãO pode ser salvo-conduto para jornalistas criminosos

https://geraldoaugustoseabra.substack.com/p/sigilo-da-fonte-nao-pode-ser-salvo
1•newsgames•16m ago•0 comments

CertChecker – stop finding out too late that an SSL cert expired

https://certchecker.dev/
1•dajubes•16m ago•0 comments

Project VEGA

https://www.microsoft.com/en-us/research/project/project-vega/
1•geox•17m ago•1 comments

Mark J. Wielaard (Mjw) Receives Distinguished Service Award in Software Freedom

https://sfconservancy.org/news/2026/aug/12/mark-j-wielaard-receives-2-annual-award/
4•darkr•19m ago•0 comments

Ask HN: What should I know before hosting eprints?

1•logicallee•21m ago•0 comments

Qwen3.8 27B Runs 200 tok/s on a Single RTX 5090

https://twitter.com/sgl_project/status/2088281320422322413
1•unseenmars•23m ago•0 comments

An easy way to build self-diagnosing and self-learning AI agents in production

https://www.youtube.com/watch?v=2x0BKQBMbF4
1•supportm•23m ago•1 comments

Castform now supports supervised finetuning

https://castform.com/blog/sft-launch/
1•kumama•25m ago•0 comments

UI is hell: four-function calculators

https://lcamtuf.substack.com/p/ui-is-hell-four-function-calculators
1•jandeboevrie•27m ago•0 comments

Capyreader: A smallish Android RSS reader

https://github.com/jocmp/capyreader
1•thunderbong•27m ago•0 comments