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?

RoR: Arbitrary file read and RCE in Active Storage

https://discuss.rubyonrails.org/t/cve-2026-66066-possible-arbitrary-file-read-and-remote-code-exe...
1•dnw•1m ago•0 comments

Situational Awareness: The Decade Ahead (2024)

https://situational-awareness.ai/
1•root-parent•1m ago•0 comments

Show HN: PhaseProbe – Find simulation transitions and turn them into tests

https://github.com/aliengineering-byte/phaseprobe
1•ali110v•2m ago•0 comments

Boeing Seats Failed Safety Test in Muan Crash Probe

https://www.chosun.com/english/national-en/2026/07/31/H3WJ5S2HXRGJLIUGYFGVRZ5ESY/
3•root-parent•4m ago•0 comments

Show HN: Symbio self fine-tuning AI loop

https://github.com/huyedits/Symbio
2•huyedit•9m ago•0 comments

Living in My Own Bubble

https://foundersdigest.substack.com/p/living-in-my-own-bubble
2•ashu1461•15m ago•0 comments

Willoughbyland: England's Forgotten South American Colony

https://www.historytoday.com/archive/history-matters/willoughbyland-englands-forgotten-south-amer...
1•benbreen•15m ago•0 comments

In the Land of the Polygons on Mars

https://science.nasa.gov/blog/curiosity-blog-sols-4934-4940-in-the-land-of-the-polygons/
2•jnord•17m ago•0 comments

Truth Social to sell fast access to Trump's social media posts

https://apnews.com/article/trump-truth-social-media-insider-trading-posts-feeds-traders-25c2c5be9...
4•bushwart•17m ago•1 comments

Things I would have done differently (consulting)

https://www.revsys.com/tidbits/things-i-would-have-done-differently/
2•craigkerstiens•17m ago•0 comments

Art Invented Humanity

https://aeon.co/essays/humans-did-not-invent-art-it-was-the-other-way-around
2•prismatic•18m ago•0 comments

Trying to Make Sense of Warsh

https://www.ft.com/content/17bcdc30-a59f-4a1f-afa7-f2c759fe588b
1•tcp_handshaker•18m ago•0 comments

Immutable Cosmic Distro AstrOS is now in beta

https://www.xda-developers.com/astros-a-distro-that-combines-the-best-of-arch-cosmic-and-immutabi...
2•linux-universe•19m ago•1 comments

Unraveling the mysteries of habit formation

https://www.kyoto-u.ac.jp/en/research-news/2026-07-28
4•hhs•19m ago•1 comments

Show HN: Wage Against the Machine – MacWages Index for AI Tasks

https://watm.ddyo.dev/
4•danr4•21m ago•0 comments

"Everyone Has Been Sold a Lie" on AI

https://www.youtube.com/watch?v=pHcZpvIfho0
10•tcp_handshaker•25m ago•0 comments

Anime User Interfaces

https://animeuserinterface.tumblr.com
4•akyuu•28m ago•0 comments

Some initial thoughts, and a complicated mix of feelings

https://twitter.com/henryquantum/status/2083623695436623915
1•bryan0•28m ago•0 comments

Bulunkul, Central Asia's Coldest (and Warmest) Town (2019)

https://www.worldnomads.com/stories/connection/bulunkul-central-asias-coldest-and-warmest-town
1•peter_d_sherman•28m ago•1 comments

Mexico became a surprise cornerstone of America's AI boom

https://www.ft.com/content/ac3274ac-86ca-46ac-bc7b-029fb9dcd173
2•alephnerd•30m ago•1 comments

The Math Superstar Who's Terrified of AI–and Just Took a Job at OpenAI

https://www.wsj.com/tech/ai/openai-jacob-tsimerman-fields-medal-ai-safety-391d0f79
2•fortran77•30m ago•2 comments

Mechanical strain creates chirality

https://www.mpsd.mpg.de/1208949/2026-07-cavalleri-nature
2•hhs•30m ago•0 comments

Bestprompts.sh – Best AI Prompts

https://bestprompts.sh
1•goldkey•31m ago•0 comments

The Rise and Fall of Leopold Aschenbrenner (Situational Awareness)

https://www.reddit.com/r/agi/comments/1vc33k1/the_rise_and_fall_of_leopold_aschenbrenner/
6•johnbarron•33m ago•0 comments

Show HN: Use iPhone's camera as a lux meter

https://www.impulsearc.com/wavelength/
2•bkazez•33m ago•0 comments

Show HN: Understanding the ReMarkable Coordinate System

https://scrybble.ink/blog/understanding-remarkable-coordinate-system
2•azeirah•34m ago•0 comments

AI opens new era in cognitive studies of wild primates

https://news.emory.edu/features/2026/07/ai-opens-new-era-cognitive-studies-wild-primates
2•hhs•35m ago•0 comments

Show HN: I built a free Open Graph image designer

https://mosaicora.io/tools/og-image-designer
2•d-atanasov•45m ago•0 comments

Prediction Markets Need Prestige Signals to Fulfill Their Mission

https://www.richardhanania.com/p/prediction-markets-need-prestige
1•paulpauper•46m ago•0 comments

Book Review: The Epic of Gilgamesh

https://www.astralcodexten.com/p/your-book-review-the-epic-of-gilgamesh
1•paulpauper•46m ago•1 comments