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?

Show HN: Dancing Particle is an interactive app built for stress relief

https://apps.apple.com/cn/app/%E9%A3%9E%E8%88%9E%E7%B2%92%E5%AD%90-%E4%BA%94%E5%BD%A9%E6%96%91%E6...
1•cflsdf•13s ago•0 comments

Hollywood Freeway Chickens

https://en.wikipedia.org/wiki/Hollywood_Freeway_chickens
1•thunderbong•1m ago•0 comments

A small homelab that fixes itself (mostly)

https://tj.ie/homelab/
1•wmchen•2m ago•0 comments

Show HN: Favicon.one – Free favicon generator, checker and downloader

https://favicon.one/
1•easy28•3m ago•0 comments

AI cannot read between the lines

https://ajaychavda.com/blog/ai-cannot-read-between-the-lines
1•germanrabbit•3m ago•0 comments

At the Bend in the Curve

https://cerncourier.com/at-the-bend-in-the-curve/
2•EA-3167•4m ago•0 comments

I Cloned Adobe with AI – Brandon Thomas, ArtCraft [video]

https://www.youtube.com/watch?v=UCL4K36SHp0
1•krisgenre•5m ago•0 comments

Reversing the Next-Page Prefetcher in Skylake-X

https://devsh0.github.io/microarchitecture,/intel,/computer-architecture/2026/11/17/reversing-the...
1•todsacerdoti•6m ago•0 comments

Robotic Wood Mill, useful robots on the cheap

https://last10pct.substack.com/p/making-a-robotic-wood-mill-completion
1•DickingAround•8m ago•1 comments

CrypticLive Daily Cryptic Clue

https://crypticlive.net
2•pambe525•9m ago•0 comments

More Power

https://rumble.com/v7ie8hk-saudi-house-trashed-urbex.html
2•absoluteleyyes•9m ago•1 comments

The Executive Mindset: From Technical Certainty to Strategic Trade-Offs

https://www.talkingtech.online/articles/the-executive-mindset-from-technical-certainty-to-strateg...
3•ricardovano•14m ago•0 comments

Guédelon Castle

https://en.wikipedia.org/wiki/Gu%C3%A9delon_Castle
3•Amorymeltzer•14m ago•0 comments

I Made a Website for a Fanfic

https://lightbulbwins-ii-season1.neocities.org/
2•krissusieralsei•19m ago•0 comments

Anthropic's early birds are getting rich

https://www.vox.com/today-explained-newsletter/510608/anthropic-ipo
6•hackyhacky•20m ago•0 comments

Meta Ads Marketplace placement is cheap for traffic but expensive for leads

https://mojodojo.io/blog/meta-ads-marketplace-placement
2•sammatilda•20m ago•0 comments

Show HN: Generate Angular TestBed specs and Storybook stories locally, no LLM

https://sshyeri.github.io/ng-test-foundry-public/
3•sshyeri•20m ago•0 comments

Show HN: I built a harness that turns floor plans into 360° tours using AI

https://walkthisplan.com/
3•sidcraftscode•23m ago•0 comments

Chipotle hoodie smuggles burritos past the cinema snack police

https://www.dezeen.com/2026/11/18/chipotles-sneak-it-in-hoodie/
1•zdw•24m ago•0 comments

Ask HN: Cheapest CPU Vms

2•mrkn1•26m ago•0 comments

Gemini 4 Neon looks like an Opus 5.5 competitor

https://micjm.com/blog/gemini-4-neon-looks-like-a-top-model/
8•seizethecheese•26m ago•0 comments

The cabinet went quiet. The dashboard did not notice

https://solenroot.com/blog/build-log-1/cabinet-went-quiet-dashboard-did-not-notice-5
2•solenroot•31m ago•0 comments

Running distributed ML and AI workloads with wasmCloud (2025)

https://wasmcloud.com/blog/2025-01-15-running-distributed-ml-and-ai-workloads-with-wasmcloud/
2•measurablefunc•33m ago•0 comments

Threat Overview of Artex Autonomous Penetration Testing Framework [pdf]

https://www.ic3.gov/CSA/2026/261113.pdf
3•haburka•34m ago•0 comments

Experiments in Weight-Space Programming

https://jacobstrauss.bearblog.dev/experiments-in-weight-space-programming/
2•gmays•37m ago•0 comments

Veda: The First Agentic Native Hobby OS

https://github.com/vahmoh/Veda
2•vahmoh250•37m ago•0 comments

Fable: Written, painted and directed by Claude Fable 5.2

https://claudia.gallery/fable/
7•CharlesW•38m ago•2 comments

Show HN: Lazycow Studio – turns footage you never edited into reels, locally

https://github.com/kensaurus/lazycow-studio
2•kensaurus•39m ago•0 comments

Show HN: Agent Hive – cute Grokbot like agentic teams with queen and many bees

https://github.com/ericwang915/agent-hive
2•ericwang915•42m ago•0 comments

New models tested: Gemini 4 Hydrogen, Qwen4-Max, and GPT-6.2

https://www.metergraph.dev/blog/release-radar/2026-11-gemini-qwen-gpt/
1•VasiliyRad•43m ago•0 comments