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?

Astra marks the Claude 3.7 moment for knowledge work

https://fundaai.substack.com/p/deepllm-gpt-6-astra-opens-new-markets
2•deepmem•3m ago•0 comments

Show HN: Interactive history of Earth and human civilization

https://earth.ethanplus.ai/
1•freakynit•7m ago•0 comments

Apple Watch can grab snippets of conversation without both speakers' consent

https://www.theregister.com/security/2026/09/10/watch-out-apple-timepiece-can-grab-snippets-of-co...
1•signa11•9m ago•0 comments

Optimizing a Spin-Lock

https://david.alvarezrosa.com/posts/optimizing-a-spin-lock/
2•signa11•12m ago•0 comments

Ask HN: What Can We Do?

2•silexia•13m ago•1 comments

Fugu Max and Fugu Ultra v2: Orchestrating the Pareto Frontier

https://sakana.ai/fugu-max-release/
4•hardmaru•13m ago•0 comments

Show HN: Swiftime - time tracking you can talk to, with an API for AI agents

https://swiftime.ai/
1•tomazaria•18m ago•0 comments

The Branch and the Wish – On mathematics, machines and what the proof never held

https://nisheethvishnoi.substack.com/p/the-branch-and-the-wish
1•vismit2000•23m ago•0 comments

A jank percentage doesn't say where the frame went

https://github.com/timkrest/FrameHUD/blob/main/docs/article-frame-phases.md
1•timkrest•24m ago•0 comments

The Telescope NASA Launched Sunday Was Built to Look at You

https://galratner.substack.com/p/the-telescope-nasa-launched-sunday
2•blartpaul•27m ago•0 comments

The Gemini app is now available for Windows

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-windows/
3•quysala12•31m ago•1 comments

Thinking with Looped Flows

https://arxiv.org/abs/2609.11801
1•E-Reverance•32m ago•0 comments

Metamorphosis: Transformations in the Early Modern Flap Book (19th Century)

https://publicdomainreview.org/collection/metamorphosis-early-modern-flap-book/
1•benbreen•33m ago•0 comments

One company that steals accuses another company that steals [pdf]

https://www-cdn.anthropic.com/e50be2e51e7695dc4b1366a37a245a597377d3b5/Anthropic-Detecting-and-co...
2•iamsyr•34m ago•1 comments

Show HN: Hekla, an event sourcing runtime with its own language

https://hekla.tqwewe.com/
1•tqwewe•40m ago•0 comments

DeepSeek Harness

https://www.deepseek.com/harness/en/
2•dotmanish•43m ago•0 comments

It Breaks a Village: Bevy's 6th Birthday

https://blog.fallible.net/it-breaks-a-village/
2•RohanAdwankar•44m ago•1 comments

GPT Image 2.5 for Consulting Presentations: Faster Slides and Smarter Control

https://medium.com/@2315610426/gpt-image-2-5-f36976cf7632
2•chenxi030826•46m ago•0 comments

The Bayeux Tapestry: Woven by the Victors

https://www.historytoday.com/archive/out-margins/bayeux-tapestry-woven-victors
2•prismatic•47m ago•0 comments

How to Make a PwC-Style PowerPoint with AI (2): 5 More Consulting Frameworks

https://medium.com/@2315610426/how-to-make-a-pwc-style-powerpoint-with-ai-2-5-more-consulting-fra...
1•chenxi030826•47m ago•1 comments

Trial Testing Out-of-Body Experiences Produces Unexpected Twist

https://www.uvahealth.com/news/trial-testing-out-of-body-experiences-yields-unexpected-twist
1•geox•52m ago•0 comments

Dioxus Labs is joining Cognition

https://dioxuslabs.com/blog/joining-cognition/
2•antimora•54m ago•0 comments

9/11 in Realtime (synced globally for 9/11)

https://911realtime.org
2•robbiebyrd•54m ago•1 comments

Günther Anders, the Philosopher at the End of the World

https://www.compactmag.com/article/gunther-anders-the-philosopher-at-the-end-of-the-world/
2•Caiero•55m ago•0 comments

Outflow connects directly to inverters, mints solar electricity records

1•OutflowLabsInc•57m ago•1 comments

Show HN: CertArena – Free AI certification simulator (zero deps, native Node 24)

https://aicertarena.com/
1•pennylaw946•1h ago•0 comments

Reconstructing Concurrency Invariants Through Medieval East Asian Logic

https://oborona.zip/post/a-middle-period-engine-reconstructing-concurrency-invariants-through-eas...
1•gg582•1h ago•0 comments

LiteLLM Alternatives?

1•leanroute_ai•1h ago•1 comments

AI Is Killing the App Economy and Building Its Successor

https://www.bloomberg.com/opinion/articles/2026-09-10/ai-is-killing-the-app-economy-and-building-...
1•thm•1h ago•0 comments

AI Thumbnail Generator for YouTube – Try Free – Thumbrix

https://thumbrix.com/
1•chaojie26•1h ago•0 comments