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?

Pentagon presses defense firms to build weapons as Iran war depletes stocks

https://www.washingtonpost.com/technology/2026/08/08/pentagon-presses-defense-firms-build-weapons...
1•Teever•1m ago•0 comments

California Cyberattack on 911 Systems

https://www.latimes.com/california/story/2026-08-09/cyberattack-forces-emergency-declaration-in-s...
1•vsgherzi•5m ago•0 comments

Show HN: Acquired Podcast Idea Dinner Returns

https://acquirers.vercel.app/
1•Taikhoom2010•5m ago•0 comments

Japanese court overturns Red RAW video patent

https://www.dpreview.com/news/panasonic-did-what-apple-sony-and-nikon-couldnt-overturn-a-red-raw-...
2•anigbrowl•8m ago•0 comments

Is Europe safer than America?

https://economist.com/graphic-detail/2026/08/09/is-europe-safer-than-america
1•andsoitis•12m ago•0 comments

Ask HN: How do you set comp at an early stage startup?

1•jeffreyfate•12m ago•0 comments

The Anatomy of a Pass

https://davidorban.substack.com/p/the-anatomy-of-a-pass
1•mayukh•25m ago•0 comments

Before We Click "Publish" on Hugging Face

https://twitter.com/icoxfog417/status/2086606980584714495
1•icoxfog417•25m ago•0 comments

Ask HN: What Project are you the most proud of?

2•emn4tor•27m ago•0 comments

Cloudflare OS

https://os.cloudflare.app/
2•phirschybar•30m ago•0 comments

What do I want to be? – a poem about parenting in the AI age

https://www.reddit.com/r/Adulting/s/1ZF6OLsjko
1•AmbroseBierce•33m ago•0 comments

I've Been to the Future. It Worked Out

https://iwanajohannsen.substack.com/p/ive-been-to-the-future-it-worked
1•herbertl•34m ago•2 comments

Owner of original Intel 8080 pre-production Rubylith mask seeks restorer

https://www.tomshardware.com/pc-components/cpus/owner-of-original-intel-8080-pre-production-layou...
1•sbulaev•37m ago•0 comments

Show HN: Discord-delete – Delete all your Discord messages from your data export

https://github.com/DatCodeMania/discord-delete
1•DatCodeMania•37m ago•1 comments

America's Military Is Dangerously Exposed

https://www.wsj.com/opinion/americas-military-is-dangerously-exposed-26706217
2•petethomas•38m ago•0 comments

Show HN: A local-first, modular replacement for your accounting software

https://github.com/celerp/celerp
1•ngsevers•39m ago•0 comments

Optimizing a GPT-2-Class Transformer on a GPU

http://martinkristiansen.com/llm-gpu-optimization/index.html
2•mkristiansen•41m ago•1 comments

Iran Is Rewiring Its Proxy Network

https://www.nationalreview.com/2026/08/iran-is-rewiring-its-proxy-network/
1•petethomas•44m ago•0 comments

Ancient Roman shipwreck discovered off Sicily coast

https://www.bbc.com/news/articles/cvgx1kpz17go
2•1659447091•46m ago•0 comments

Linus Torvalds Explains What Makes Linux So Fast [video]

https://www.youtube.com/watch?v=-xbzGngfQEw
1•binyu•49m ago•0 comments

Beyond Prompt Injection: Hacking Apple's Private Cloud Compute

https://blog.sentry.security/beyond-prompt-injection-hacking-apples-private-cloud-compute/
2•sickmate•56m ago•0 comments

GitHub issues as long-term memory for coding agents

https://meshintelligence.substack.com/p/how-to-use-github-as-long-term-memory
1•meshintel•57m ago•0 comments

Bank statement PDF to CSV that runs in the browser

https://statement-to-csv.pages.dev/
1•hewkaiba•59m ago•1 comments

NOVC: Venture Capital Free

https://novc.fyi/
1•xyzzy_plugh•1h ago•0 comments

.NET on AWS Open Source Software Fund

https://github.com/aws/dotnet-foss
1•kristianp•1h ago•1 comments

2036

https://www.codevoid.net/ruminations/2026/08/09/2036.html
1•grork•1h ago•0 comments

The Ambition Project

https://www.betonit.ai/p/the-ambition-project
2•herbertl•1h ago•0 comments

Modern JavaScript Tricks for Cleaner Everyday Code

https://jsdevspace.substack.com/p/20-modern-javascript-tricks-for-cleaner
1•javatuts•1h ago•1 comments

A browser that generates every website from scratch

https://www.xda-developers.com/tried-browser-generates-every-website-from-scratch/
1•TMWNN•1h ago•1 comments

NASA chooses a once-abandoned Spanish village to broadcast the 2026 eclipse

https://www.euronews.com/next/2026/08/07/why-nasa-chooses-this-small-burgos-village-to-broadcast-...
1•jmox•1h ago•0 comments