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?

Earliest octopi were giant top predators in Cretaceous oceans

https://www.science.org/doi/10.1126/science.aea6285
1•Gaishan•1m ago•0 comments

The UK Government Wants to Destroy Free Speech on YouTube [video]

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

Show HN: Mandelbrot set renderer written in pure [BSD] Makefiles

https://github.com/b-aaz/bmake-extravaganza
1•b-aaz•9m ago•0 comments

Meta Tests Pocket, an Experimental App for AI-Generated Mini-Games

https://www.ghacks.net/2026/07/05/meta-tests-pocket-an-experimental-app-for-ai-generated-mini-gam...
1•LorenDB•10m ago•0 comments

Agentic Autonomy Levels

https://addyo.substack.com/p/agentic-autonomy-levels
1•backlit4034•14m ago•0 comments

LLMs Are Not a Default Execution Engine

https://unmeshed.io/blog/using-ai-wisely-starts-before-the-first-prompt
2•jusonchan81•15m ago•0 comments

Categorical, semantic perception of meaning of call types in zebra finches [pdf]

https://www.science.org/doi/10.1126/science.ads8482
1•thunderbong•17m ago•0 comments

I (er Claude) wrote an RSS de-duper

http://rsshose.com
1•scumola•18m ago•1 comments

Rust is in TIOBE Index top 10

https://www.tiobe.com/tiobe-index/
2•zdkaster•19m ago•0 comments

I created a free tool that pairs your Nasic and past performance to win contract

https://www.fedfinder.net/
1•sentinelowl•21m ago•0 comments

Claude Fable 5 Backlash Grows

https://tech.yahoo.com/ai/claude/articles/claude-fable-5-backlash-grows-213000534.html
1•cybermango•25m ago•0 comments

NASA's Webb Studies How Planet Survived Death of Its Star

https://science.nasa.gov/missions/webb/nasas-webb-studies-how-planet-survived-death-of-its-star/
1•gmays•27m ago•0 comments

Swapheic – Convert images in the browser, everything happens locally, no uploads

https://swapheic.com/
1•rajsuper123•29m ago•0 comments

Scratch Linux Kernel Modules (scratchnative.at.github)

https://scratch.mit.edu/projects/706685974/editor/
1•oliculipolicula•30m ago•0 comments

The New BMW iX5 Hydrogen

https://www.bmwgroup.com/en/news/general/2026/the-new-bmw-ix5-hydrogen.html
2•plun9•31m ago•0 comments

First-ever reverse-aging drug was just injected into a human

https://www.businessinsider.com/first-ever-reverse-aging-treatment-injected-into-a-human-2026-6
4•cybermango•33m ago•0 comments

What Is Neocloud?

https://www.cisco.com/site/us/en/learn/topics/computing/what-is-neocloud.html
1•plun9•33m ago•0 comments

Breakthrough drug reverses aging in skin and dramatically speeds healing

https://www.sciencedaily.com/releases/2026/05/260519003215.htm
2•cybermango•34m ago•0 comments

The AI-Native Founder

https://www.wensenwu.com/thoughts/ai-native-founder
3•matmult•34m ago•0 comments

Tencent Hy3

https://huggingface.co/tencent/Hy3
3•droidjj•34m ago•0 comments

Math Master

https://www.angryflower.com/1666.html
1•oliculipolicula•37m ago•0 comments

Emerging evidence links tire pollution to Alzheimer's risk

https://medicalxpress.com/news/2026-07-emerging-evidence-links-pollution-alzheimer.html
1•OutOfHere•43m ago•1 comments

UUIDs, ULIDs and Sqids: A Practical Deep Dive

https://wendelladriel.com/blog/uuids-ulids-and-sqids-a-practical-deep-dive
2•shaunpud•47m ago•0 comments

Strata – An app that talks me out of dying outdoors

https://strata.highloop.co/
3•cloocher•49m ago•3 comments

The healing power of watching the boys of 'Jackass' do stupid things

https://www.yahoo.com/entertainment/general/article/the-healing-power-of-watching-the-boys-of-jac...
3•herbertl•51m ago•1 comments

Show HN: Tarot.free – Free Tarot Readings

https://tarot.free/
2•nadermx•52m ago•1 comments

The Hard Parts of Streaming Audio in Voice Agents

2•gokuljs•53m ago•0 comments

Binvariants: Register-Level Invaraint-Guided Fuzzing for Binaries

https://github.com/FuturesLab/Binvariants
2•matt_d•55m ago•0 comments

Env.style: Deployment environment disambiguation via favicon

https://www.env.style/
2•handfuloflight•57m ago•0 comments

Cewsco – the AI that keeps up with you

https://cewsco.com/
2•kalkalka•1h ago•2 comments