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?

Rustext: A native GUI/TUI text editor in pure Rust with zero dependencies

https://github.com/boleklolek/rustext
1•boleklolek•1m ago•0 comments

Region: A Lesson in Data Integrity

https://mydbanotebook.org/posts/region-a-lesson-in-data-integrity/
1•hosteur•1m ago•0 comments

Musk accuses Ukraine of violating Starlink terms with deadly drone strikes

https://arstechnica.com/tech-policy/2026/10/musk-accuses-ukraine-of-violating-starlink-terms-with...
1•rbanffy•2m ago•0 comments

C# and NATS.io for agentic AI orchestration

https://nats.io/blog/nats-native-protocol-for-ai-agents/
1•northlondoner•3m ago•1 comments

The Evolving Landscape of Venture Capital Mindsets

https://twitter.com/martin_casado/status/2115474230511030475
1•porridgeraisin•3m ago•0 comments

What a 50-year-old tractor taught me about UX

https://evergreendesign.io/essays/just-in-time-help/
1•violinar•5m ago•0 comments

Homebrew Git updated away from macOS's system cURL

https://github.com/Homebrew/homebrew-core/pull/321878
1•ungawatkt•6m ago•1 comments

GPT-6.1 Sol Beats Final Fantasy VII

https://www.twitch.tv/videos/2912639349
1•transportgo•6m ago•1 comments

Ask HN: What happened to our collective ethos?

1•nativeit•7m ago•0 comments

Powerful Dem trio demands faster AI incident disclosures

https://www.politico.com/live-updates/2026/10/28/congress/powerful-dem-trio-demands-faster-ai-inc...
1•node_runner•10m ago•1 comments

EU dropping associate membership title for its closer alliance with Canada

https://www.cbc.ca/news/politics/european-union-canada-associate-member-9.7399578
2•wmchen•10m ago•0 comments

Em Dashes and Armbands

https://medium.com/@pheverdotexe/em-dashes-and-armbands-eefd2f2c1a48
2•Pheverdotexe•10m ago•0 comments

Show HN: Gitby

https://gitby.dev
2•gitby•11m ago•0 comments

Scaling Hierarchical Networks

https://www.cartesia.ai/blog/from-tokens-to-bytes-part-1
1•guybedo•12m ago•0 comments

Writing GPU kernels in Rust: how I made speakrs 60× faster than pyannote

https://avencera.com/blog/writing-gpu-kernels-in-rust-speakrs-60x-faster-than-pyannote
2•praveenperera•12m ago•0 comments

Apple MacBook Pro with touch screen

https://www.apple.com/ca/macbook-pro/proled-xdr-display/
2•yohannparis•12m ago•2 comments

Amazon engineering leadership on the role of the developer in the age of AI

https://www.aboutamazon.com/news/company-news/amazon-software-engineer-role-guideline-ai
1•luispa•13m ago•0 comments

What Women Want from AI

https://www.elenaverna.com/p/dear-new-york-times-thats-not-what
1•flail•13m ago•0 comments

Enterprise Add-On Policies

https://blog.mozilla.org/addons/2026/10/28/introducing-enterprise-add-on-policies/
1•rdmuser•13m ago•0 comments

The Boring Future of AI Coding

https://metamagic.substack.com/p/the-boring-future-of-ai-coding
1•r0ze-at-hn•14m ago•0 comments

Gemini Robotics Embodied Reasoning 2 is now available on Google Cloud

https://cloud.google.com/blog/products/ai-machine-learning/gemini-robotics-embodied-reasoning-2-i...
1•gmays•14m ago•0 comments

Hermes Paper Harness: Native SwiftUI iPhone Client for Hermes Agent

https://apps.apple.com/ro/app/hermes-paper-harness/id6820495872
1•yourfavdev•15m ago•0 comments

Apple announces touchscreen MacBook Pro with OLED display

https://arstechnica.com/apple/2026/10/apple-announces-touchscreen-macbook-pro-with-oled-display/
2•arunbahl•15m ago•1 comments

We rebuilt the OpenAI x Hugging Face incident and stopped it before it happened

https://runlatent.ai/blog/agent-shortcut-hold
1•vedantgr•15m ago•0 comments

Microsoft makes its Copilot agent harness available through Foundry

https://blogs.microsoft.com/blog/2026/10/28/introducing-the-microsoft-copilot-harness-unlocking-t...
1•acossta•15m ago•0 comments

BeKaffe: Java on Haiku

https://duncanmcqueen.github.io/bekaffe/
1•grodriguez100•16m ago•0 comments

When the Job Description Says AI, but the Data Doesn't

https://seeglassbox.com/market/entry-level-software/when-the-job-description-says-ai
1•muturii•17m ago•0 comments

Rethinking Search as Code Generation

https://www.perplexity.ai/hub/blog/rethinking-search-as-code-generation
1•imankulov•18m ago•0 comments

Claude Code found 14,219 photos of my face on my Android that I never took

https://twitter.com/coolerwave/status/2115393243458207755
4•bpierre•19m ago•0 comments

How to make (good) pixel art effects with Claude

https://www.spritefusion.com/blog/how-to-make-good-pixel-art-effects-with-claude
2•kinduff•20m ago•0 comments