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?

Seattle Just Had an Earthquake

1•tobinfekkes•35s ago•0 comments

Feds Might Flip the Script on Right to Repair Vehicle Emissions Systems

https://www.thedrive.com/news/feds-might-flip-the-script-on-right-to-repair-vehicle-emissions-sys...
1•josephcsible•7m ago•0 comments

Likelihood, and Maximum Likelihood, in Statistics

https://bactra.org/notebooks/likelihood.html
1•Tomte•10m ago•0 comments

Fable 5 is insanely good

1•vuphanse•10m ago•0 comments

Ask HN: Who's Hiring Remote Contractors? (July 2026)

1•akashwadhwani35•11m ago•0 comments

Typst: Designing for Incrementality (Laurenz Mädje at RustWeek) [video]

https://www.youtube.com/watch?v=yWWVhbyOWWE
1•felixhummel•11m ago•0 comments

Rasa Intelligence: AI diagnostic engine-gives one business verdict in 90 seconds

https://tech-rasa.com
1•Deepti251•14m ago•0 comments

My Story of 3D Realms / Apogee Part I (2020)

https://joesiegler.blog/2020/11/my-story-of-apogee-3dr/
1•Michelangelo11•15m ago•0 comments

NoUI()

https://www.swiftjectivec.com/noui/
1•ingve•18m ago•0 comments

OpenAgents makes Sonnet 5, Fable 5 and other agents collaborate in one thread

https://openagents.org/workspace
1•gshg12•22m ago•1 comments

The Socialist Wave Reaches the Heartland

https://www.wsj.com/opinion/colorado-democrats-socialists-melat-kiros-michael-bennet-99ad5a66
1•doener•22m ago•1 comments

PyCanopy: A spatial query layer for Polars, competitive with DuckDB, SedonaDB

https://github.com/pranav-walimbe/PyCanopy
1•pranav1077•22m ago•1 comments

The Complete Homemade Juggling Beanbag Guide

https://www.joshuaclifton.com/juggle/
1•mrauha•23m ago•1 comments

Show HN: LinkedIn Focus Chrome Extension

https://yvetter438.github.io/LinkedInFeedBlockerWebsite/
1•ywv•25m ago•0 comments

Show HN: What GPTBot sees before your React app hydrates

https://botscore.io/blog/what-gptbot-sees-before-hydration/
1•_tool•26m ago•0 comments

Show HN: Designing a factory-safety agent (model reasons, code routes)

https://github.com/HumphreySun98/safety-commander-agent
1•humphreysun98•29m ago•0 comments

Section 194J of Income Tax Act: Meaning, Rules and Examples – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/section-194j-of-income-tax-act.aspx
1•saumyaraut11•30m ago•0 comments

Black Pepper Won Europe from a Tastier Pepper (2016)

https://www.atlasobscura.com/articles/long-pepper-better-than-black-pepper
1•downbad_•31m ago•0 comments

Google's exponential path to climate-wrecking digital bloat

https://ketanjoshi.co/2026/07/01/googles-exponential-path-to-climate-wrecking-digital-bloat/
1•jalev•32m ago•0 comments

LongCat 2.0: The first trillion-parameter model trained on Chinese-made GPUs

https://www.reuters.com/world/china/chinas-meituan-says-new-ai-model-trained-domestic-chips-2026-...
1•linzhangrun•33m ago•0 comments

Limine: Modern, secure, portable, multiprotocol bootloader and boot manager

https://github.com/Limine-Bootloader/Limine
2•noteness•39m ago•0 comments

Cotal: Agentic Coordination Layer

https://cotal.ai
1•handfuloflight•40m ago•0 comments

CSS Logical Properties Converter

https://cssawwwards.com/frontend-toolkit/css-logical-properties
1•cssawwwards•42m ago•0 comments

Show HN: I wrote a Rust book ending with a Redis clone

https://shankhan3.gumroad.com/l/dnwmtp
2•zeeshanali0094•42m ago•0 comments

The Three Projections of Doctor Futamura

http://blog.sigfpe.com/2009/05/three-projections-of-doctor-futamura.html
1•tristenharr•42m ago•0 comments

Torlink

https://github.com/baairon/torlink
3•handfuloflight•42m ago•1 comments

AI Tutor on Your Screen

https://heybraza.com
1•orakulus•47m ago•1 comments

What Happened to the Fight for the Internet?

https://dustycloud.org/blog/what-happened-to-the-fight-for-the-internet/
1•signa11•50m ago•0 comments

Power House – a Rust/Python toolkit for verifiable computation artifacts

https://mfenx.com
1•psl-fox•53m ago•0 comments

Nomenclator (Nomenclature)

https://en.wikipedia.org/wiki/Nomenclator_(nomenclature)
1•thunderbong•58m ago•0 comments