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?

General Atomics Developing Flying Wing That Uses Hybrid-Electric Propulsion

https://www.twz.com/news-features/general-atomics-developing-strike-recon-flying-wing-called-next...
1•cisc•53s ago•0 comments

Show HN: To Honor Sir Patrick Stewart, Enjoy the TNG Episode Guessing Game

https://tng.episodle.com/
2•francisofascii•1m ago•0 comments

Live CVE Feed to Keep Your Agent Up to Speed

https://casco.com/cve
1•french_toast_fi•3m ago•0 comments

Googling Firebase got me a phishing page hosted by Google

https://volodymyr.smirnov.im/writing/google-firebase-phishing/
2•vsmim•4m ago•0 comments

Be a Loser

https://makemeacto.cc/be-a-loser/
1•larsfaye•4m ago•0 comments

China's CE-25A Electric Commuter Airliner Demonstrator Emerges

https://www.twz.com/air/chinas-ce-25a-electric-commuter-airliner-demonstrator-emerges-in-photos
2•cisc•10m ago•0 comments

Channel Binding

https://blog.prosody.im/channel-binding/
1•zaik•13m ago•0 comments

AI agents shape experts' judgment calls

https://www.anthropic.com/research/agents-judgment-calls
1•firasd•14m ago•1 comments

Hue-rs: control hue lightbulb directly

https://github.com/hiatus770/hue-rs
1•hiatus330•14m ago•0 comments

U.S. approves $2.1B sale of Patriot interceptors to Ukraine

https://www.nbcnews.com/world/ukraine/us-approves-21-billion-sale-patriot-interceptors-ukraine-rc...
2•paaloeye•16m ago•1 comments

Fair Use Benefits Everyone

https://openai.com/index/fair-use-benefits-everyone/
5•pentagrama•19m ago•2 comments

The 'Moylan Arrow' Is One of Ford's Best Contributions to Car Design

https://www.thedrive.com/news/the-moylan-arrow-is-one-of-fords-best-contributions-to-car-design
4•thunderbong•22m ago•0 comments

10.0: CVE-2026-112816 – Canonical LXD – Improper cert validation — no emudhra

https://twitter.com/cvedotnow/status/2116213963872518418
1•paaloeye•23m ago•0 comments

Ask HN: Are most of you using HN Replies? Or what else do you use?

2•Gooblebrai•24m ago•3 comments

Show HN: Free Unlimited Virtual Monitors+Watch Claude Work on Them+Community

https://multispace.dev/
1•DanielSystem•36m ago•12 comments

Federal Bureau of Prisons employees serve as election monitors at polling sites

https://www.corrections1.com/federal-prison/bop-employees-to-serve-as-election-monitors-at-pollin...
12•MadrasTh0rn•41m ago•2 comments

AI changed what I can build

https://tanner.place/blog/how-ai-changed-what-i-can-build
2•vrennat•43m ago•1 comments

Zellic's and V12's Work on x86 Binary Formal Verification

https://v12.sh/blog/x86-formal-verification-intro
1•drdrey•43m ago•0 comments

Anthropic to receive high 'junk' rating from credit agencies following IPO

https://techcrunch.com/2026/10/30/anthropic-expected-to-receive-high-junk-rating-from-credit-agen...
11•jnord•45m ago•1 comments

Worst Halloween candies, according to the data

https://flowingdata.com/2026/10/30/worst-halloween-candies-according-to-the-data/
2•surprisetalk•45m ago•1 comments

Analysts find looming launch crisis is "more severe" than anticipated

https://arstechnica.com/space/2026/10/analysts-find-looming-launch-crisis-is-more-severe-than-ant...
5•jnord•45m ago•0 comments

Reddit shares plunge as Google's AI search squeezes traffic

https://www.reuters.com/business/reddit-pinterest-shares-tumble-weak-user-revenue-growth-2026-10-30/
1•tartoran•50m ago•1 comments

Tell HNN: Pets.com was *not* owned today

2•y1n0•51m ago•0 comments

Hands on the Wheel

https://ryanbigg.com/2026/10/hands-on-the-wheel
2•ryanbigg•52m ago•0 comments

The N64's GPU Is a Technical Marvel [video]

https://www.youtube.com/watch?v=WEoRgQH08MA
3•zdw•55m ago•0 comments

The Thaura Constitution

https://thaura.ai/constitution
2•conferza•59m ago•0 comments

Somoene bets $10M on Reddit stock anad loses half of it

https://old.reddit.com/r/wallstreetbets/s/LWYApzWCQH
1•paulpauper•59m ago•0 comments

The Ground Beneath Them Was Dry

https://lagomor.ph/2026/10/the-ground-beneath-them-was-dry/
2•jfil•1h ago•0 comments

Sndstation will transform cheap gaming consoles into music handhelds

https://cdm.link/sndstation-linux-distro-for-game-handhelds/
2•Blackthorn•1h ago•0 comments

The Commanding Heights

https://commanding-heights.com/
1•emersonmacro•1h ago•0 comments