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?

OpenSSH adds support for composite ML-DSA 87 / ECDSA p384

https://github.com/openssh/openssh-portable/commit/fc6f265302adcbf88c5b4273e9cc9f4e5f81ab94
1•weeha•4m ago•0 comments

Migrating My Home Assistant Instance from HAOS to NixOS (On Proxmox)

https://assil.me/2026/12/05/migrate-home-assistant-haos-to-nixos.html
1•Cyph0n•4m ago•0 comments

Testing for mathematical taste with a ladder of cheap policies

https://thebatmanofbutler.substack.com/p/testing-for-mathematical-taste-with
1•theahura•8m ago•0 comments

A Statement on Replacing Ed25519, and on Quantum-Secure Polyproto

https://polyproto.org/blog/2026/12/04/pqc-situation/
1•matanyall•8m ago•0 comments

Anthropic Conquered Capitol Hill

https://ieapolicy.org/
1•devy•12m ago•0 comments

AGI Ruin: A List of Lethalities

https://www.lesswrong.com/posts/uMQ3cqWDPHhjtiesc/agi-ruin-a-list-of-lethalities
1•Alien1Being•13m ago•0 comments

Show HN: Image to Excel – Layout-aware table photos and scanned PDFs to .xlsx

https://imagetoexcel.io/
1•airapcreator•15m ago•0 comments

When stocks, houses and crypto fall, where does all that money go?

https://www.cbc.ca/1.6486826
1•thunderbong•17m ago•0 comments

Open-Source Developer Stands Up Against Synaptics Legal Threats over DisplayLink

https://www.phoronix.com/news/Vino-Driver-Redacted-Back
2•snvzz•18m ago•0 comments

BQP Lives Another Day

https://scottaaronson.blog/?p=10454
1•Alien1Being•19m ago•0 comments

Intelligence as a Resource

https://arxiv.org/abs/2612.04545
1•Anon84•20m ago•0 comments

AI Software Factories Were a Mistake

https://tej.as/blog/ai-software-factories-were-a-mistake
1•chriscbr•21m ago•0 comments

Show HN: A2a-gateway – Rust A2A v1.0 and MCP 2.0 gateway (973 RPS, 13.5 MB RAM)

https://github.com/csa7mdm/a2a-gateway
1•csa7mdm•24m ago•0 comments

The Mystery of the Continuously Functioning Battery from 1840 (2015)

https://www.smithsonianmag.com/smart-news/mystery-continuously-functioning-battery-1840-180954028/
1•saikatsg•27m ago•0 comments

Polish bare-knuckle fighter dies after bout

https://www.cnn.com/2026/12/05/uk/bare-knuckle-fighter-magdon-dies-intl
1•begueradj•28m ago•0 comments

The Modern Marketing Implementation Process

https://cunderwood.dev/2026/12/06/the-modern-marketing-implementation-process/
1•fenier•32m ago•0 comments

Pioneer Head Unit Animations

https://github.com/youxufkhan/carozerra
2•kakadu•33m ago•0 comments

1k Issues, 500 PRs: Using AI to build a B2B app with no coding experience

https://mkpr.dev/notes/using-ai-to-build-a-b2b-app/
1•articul8info•34m ago•0 comments

Show HN: If Pokemon cards are quantum resistant, find those gems here

https://www.decard.fun
1•alleybo55•35m ago•0 comments

Deadly Thoughts

https://drb.ie/article/deadly-thoughts/
1•lermontov•43m ago•0 comments

Albums I Like

https://jaydip.me/music
1•jdsane•45m ago•0 comments

Lawyers Suing Nvidia Seize 'Gold Mine' in Huang Senate Testimony

https://www.bloomberg.com/news/articles/2026-12-05/lawyers-suing-nvidia-seize-gold-mine-in-huang-...
2•gwu78•45m ago•0 comments

Test Your Agents Inside a Copy of Your Company

https://mirrordimensions.com/
2•nakam0t0•55m ago•0 comments

Show HN: Song Mashup Maker – overlay two songs in-browser, no upload

https://song-mashup-maker.com/
1•kevinzrzgg•56m ago•0 comments

The Marine Aquarium Screensaver [video]

https://www.youtube.com/watch?v=PprsZgA-kxs
1•gregsadetsky•1h ago•0 comments

New York court bars Kalshi from offering sports bets to users under 21

https://www.reuters.com/legal/government/new-york-ag-says-court-bars-kalshi-offering-sports-bets-...
25•gwu78•1h ago•2 comments

Depth of Field Simulator

https://jherr.github.io/depth-of-field/
1•soheilpro•1h ago•0 comments

Naive, stumbling Jensen Huang is indispensable to our economy?? Really!?

https://nypost.com/2026/12/03/business/naive-stumbling-jensen-huang-is-indispensable-to-the-econo...
1•gwu78•1h ago•2 comments

One Model Family Across Four Tiers: The Sovereign AitherOS Stack and Mesh

https://blog.aitherium.com/blog/sovereign-multi-device-stack-and-mesh-aitheros
1•waizns•1h ago•0 comments

I let an AI agent organise my life and it became weirdly protective of me

https://www.bbc.co.uk/news/articles/cxvg21mzypyyo
2•mellosouls•1h ago•0 comments