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?

Playing Ranked Rocket League on Apple Silicon (Obelisk)

https://github.com/Zagrios/Obelisk
1•Zagrios•2m ago•1 comments

Steller's sea cow: First historical extinction of a marine mammal at human hands

https://www.nhm.ac.uk/discover/stellers-sea-cow-first-historical-extinction-of-marine-mammal-at-h...
2•zeristor•2m ago•0 comments

You have to be disagreeable to use AI well

https://www.seangoedecke.com/you-have-to-be-disagreeable-to-use-ai-well/
1•PraddyChippzz•3m ago•0 comments

A.I. Cracked the Riemann Hypothesis. The Proof Is 17M Lines Long

https://www.smithsonianmag.com/innovation/ai-cracked-the-riemann-hypothesis-the-most-famous-unsol...
1•AlenaSato•3m ago•0 comments

Carbon nanotube could replace copper in batteries, boosting energy density 25%

https://news.rice.edu/news/2026/lighter-materials-could-lead-more-powerful-lithium-ion-batteries
2•giuliomagnifico•3m ago•0 comments

How many times a week are the streets of Washington swept?

https://attilabatorfy.substack.com/p/how-many-times-a-week-are-the-streets
1•TanZeng•5m ago•0 comments

Show HN: Age of Empires II HD decompiled to C++, playable in the browser

https://shellbear.me/aoe2/
1•shellbear•7m ago•1 comments

AWS Launches AI-Native Docs, Sheets & Slides to Challenge Microsoft and Google

https://techcrunch.com/2026/11/30/amazon-launches-ai-native-docs-sheets-and-slides-to-challenge-m...
1•daniel_iversen•8m ago•0 comments

Sleeping Beauty and ChatGPT

https://blog.tanyakhovanova.com/2026/10/sleeping-beauty-and-chatgpt/
1•Letterui•9m ago•0 comments

Google DeepMind Staffers Quit over Military AI as Drone CEO Warns of Risk

https://www.military.com/google-deepmind-staffers-quit-over-military-ai-as-drone-ceo-warns-of-risk
3•bushwart•10m ago•0 comments

Who Is Hiring? (December 2026)

https://www.tropicosecurity.com/
1•CarloTropico•10m ago•0 comments

Optimizing Video Diffusion Models by Utilizing End-to-End NVFP4 Inference

https://www.synthesia.io/post/optimising-video-diffusion-models-by-utilizing-end-to-end-nvfp4-inf...
1•alexvoica•10m ago•0 comments

Show HN: Spidey, free SEO crawler app with a local MCP server

https://github.com/razaanstha/spidey
1•razaan•10m ago•0 comments

Bay Area Radio Museum: Jingles and Imaging Archive

https://bayarearadio.org/jingles
1•HowardLien•12m ago•0 comments

Jujutsu creator Martin von Zweigbergk returns to Google

https://github.com/jj-vcs/jj/pull/10818
2•whataguy•12m ago•0 comments

Deep sea worm named after Dolly Parton

https://www.popsci.com/environment/dolly-parton-sea-worm/
1•tosh•13m ago•0 comments

Thanksgiving Gift to OpenDAL Contributors

https://opendal.apache.org/community/contributors/
1•xuanwo•13m ago•0 comments

Tobacco plants can make widely used cancer medicine

https://www.futurity.org/tobacco-plants-cancer-medicine-taxol-3355012/
1•DeepLogin•13m ago•0 comments

Dune and the Digital Age: A Warning

https://www.diggitmagazine.com/dune-and-digital-age-warning
1•dpz•22m ago•0 comments

Scientists Find Evidence of a Mysterious Blob of Heat Inside the Moon

https://www.sciencealert.com/scientists-find-evidence-of-a-vast-mysterious-blob-of-heat-inside-th...
2•Aryon111•26m ago•0 comments

Israel has destroyed or damaged 98% of schools in Gaza says Israeli rights group

https://www.theguardian.com/global-development/2026/dec/01/israel-gaza-schools-children-btselem-h...
7•teleforce•27m ago•1 comments

Let Me Give You Worms

https://untested.sonnet.io/notes/let-me-give-you-worms/
1•signa11•27m ago•0 comments

Advent of CVE 2026

https://adventofcve.com/
1•Diraan•28m ago•0 comments

AIS4CBM: Live ship tracking on a Commodore 128

https://ais4cbm.greek-geek.info/
1•FiderHi•30m ago•0 comments

Transition to Post-Quantum Cryptography Standards

https://csrc.nist.gov/pubs/ir/8547/final
1•teleforce•30m ago•0 comments

Freezer Hack Locks Out Technicians, Sets Temperature to 100 Degrees Celsius

https://www.privacyguides.org/news/2026/11/29/freezer-hack-locks-out-technicians-sets-temperature...
2•DeepLogin•30m ago•0 comments

The Atlases of the Soviet Republics

https://attilabatorfy.substack.com/p/the-stunning-atlases-of-the-soviet
4•JulieZhao00•31m ago•0 comments

Show HN: Dense-Armor 1.7.2 – Numerically stable online and deep learning toolkit

https://tatopenn-cell.github.io/Dense-Armor/stats/stable_variance/
1•tatopenn•33m ago•0 comments

NIST IR 8547 Final: What changed and what it means for post-quantum migration

https://quantumgate.ae/blog/nist-ir-8547-final-pqc-migration/
1•teleforce•34m ago•0 comments

Show HN: ToHD – Free in-browser video upscaler running Real-ESRGAN on WebGPU

https://tohd.video/
1•flreey•36m ago•0 comments