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?

Meta $1.4T threat could mean 'turning in the keys and walking away'

https://fortune.com/article/meta-faces-1-4-trillion-threat-stakes-of-case-reach-across-tech-08-20...
1•1vuio0pswjnm7•3m ago•1 comments

GPT 5.6 Sol 20% price reduction

https://developers.openai.com/api/docs/models/gpt-5.6-sol
1•izakfr•4m ago•1 comments

Suspicions of hitting daughter between a congressman and his ex-wife

https://www.washingtonpost.com/investigations/2026/08/21/inside-police-investigation-how-rep-max-...
2•doctorpangloss•6m ago•1 comments

Fighter jets help destroy Russian drone boat near European offshore gas platform

https://arstechnica.com/gadgets/2026/08/explosive-russian-drone-boat-destroyed-near-european-offs...
1•jnord•6m ago•0 comments

I built an open-source FACEIT stats Browser Source for OBS

https://faceitwidget.com/
1•nachete•10m ago•0 comments

Firezone REST API generally available

https://www.firezone.dev/blog/rest-api-ga
1•jamilbk•14m ago•0 comments

Prevention of myopia in a near-primate by supplemental indigo light

https://pubmed.ncbi.nlm.nih.gov/42612637/
1•OutOfHere•19m ago•1 comments

I tested 20 "agent-ready" Shopify stores –> 25% silently break at add-to-cart

https://github.com/MythrilS/agent-ready-checkout
1•MythrilS•26m ago•0 comments

Limnic Eruption

https://en.wikipedia.org/wiki/Limnic_eruption
2•tchalla•28m ago•0 comments

EchoCoT: Extracting Hidden Chain-of-Thought from Large Reasoning Models

https://arxiv.org/abs/2608.20055
1•sbulaev•30m ago•0 comments

Finding a hidden Mersenne Twister inside a 15 year old game binary

https://medium.com/@jizoskasa/i-reverse-engineered-plants-vs-zombies-to-answer-one-very-specific-...
1•signa11•32m ago•0 comments

New U.S. tariffs to take effect after midnight, Canada plans to match levies

https://www.cbc.ca/lite/story/9.7310605
2•morkalork•36m ago•1 comments

France issues warning over substandard condoms

https://www.dw.com/en/france-issues-warning-over-thousands-of-substandard-condoms/a-78462877
2•tchalla•36m ago•0 comments

Inevitable Architecture

https://lebbeuswoods.wordpress.com/2012/07/09/inevitable-architecture/
1•cl42•38m ago•0 comments

Chinese regulators tell Tesla: fix 3M cars

https://arstechnica.com/cars/2026/08/chinese-regulators-tell-tesla-to-fix-nearly-3-million-cars/
2•worik•40m ago•0 comments

King of the Indie Hacker? Will You Claim the Throne?

https://www.kingoftheindiehacker.lol
1•mattmerrick•40m ago•0 comments

Neo: A novel writing tool from Hugh Howey

https://hughhowey.com/introducing-neo/
1•js2•43m ago•0 comments

Getting Freaky in the Age of AI

https://www.iankduncan.com/engineering/2026-08-07-getting-freaky-in-the-age-of-ai/
1•jbott•51m ago•0 comments

Ebb: A Privacy-First Period Tracker

https://ebb.lyfmail.com
1•LYFMail•54m ago•1 comments

People are vandalizing Flock surveillance cameras

https://www.npr.org/2026/08/21/nx-s1-5939851/flock-cameras-police-block-surveillance-vandalize
2•0in•57m ago•0 comments

Linus: And this was a debug session from hell, enormously helped by an AI

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=818bebeb63dd6bf5f4e...
2•Garbage•57m ago•0 comments

Giving an LLM your prod database is easy. Taking access away is the hard part

https://deepsql.ai/blog/giving-an-llm-your-database-is-easy-taking-access-away-is-hard
2•venkat971•1h ago•1 comments

Show HN: A fruit fly on the web powered by the real FlyWire connectome

https://github.com/DustinBrett/daedalOS
1•DustinBrett•1h ago•0 comments

Open-source field operations system for construction

https://taskfleetai.github.io/fieldfleet/
1•iguardo•1h ago•0 comments

The Cognitive Barrier to Teaching

https://educationrealist.substack.com/p/the-cognitive-barrier-to-teaching
1•barry-cotter•1h ago•0 comments

Instinct on X

https://instinctonx.com/2026-08-21
2•ajwaxman•1h ago•0 comments

Direct light-to-token conversion with integrated 2D photosensitive memory

https://www.nature.com/articles/s44460-026-00122-3
1•eunos•1h ago•0 comments

Startup Founders Are Working Harder Than Ever to Keep Up with Their AI Agents

https://www.wsj.com/tech/ai/ai-agents-startup-work-culture-fa10494d
2•fortran77•1h ago•1 comments

Google MADE A MISTAKE – Pixel 11 Pro Fold durability test [video]

https://www.youtube.com/watch?v=jUT3rUZGqLA
1•canucker2016•1h ago•1 comments

Run frontier models on gaming GPUs

https://twitter.com/andy_shuoyang/status/2090856982383300898
1•eob•1h ago•0 comments