frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•6mo 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•6mo 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?

The Unexpected Effectiveness of One-Shot Decompilation with Claude

https://blog.chrislewis.au/the-unexpected-effectiveness-of-one-shot-decompilation-with-claude/
2•knackers•4m ago•1 comments

Bringing Sexy Back. Internet surveillance has killed eroticism

https://lux-magazine.com/article/privacy-eroticism/
3•eustoria•6m ago•0 comments

Matrix Core Programming on AMD CDNA4 Architecture

https://rocm.blogs.amd.com/software-tools-optimization/matrix-cores-cdna/README.html
2•salykova•6m ago•0 comments

Computer Says No:O

1•Pocomon•9m ago•0 comments

Apple and Intel Rumored to Partner on Mac Chips

https://www.macrumors.com/2025/11/28/intel-rumored-to-supply-new-mac-chip/
13•bigyabai•11m ago•0 comments

Who wins when we filter the open web through an opaque system?

https://hidde.blog/filtered-open-web/
1•ChrisArchitect•11m ago•0 comments

Go Proposal: Goroutine Metrics

https://antonz.org/accepted/goroutine-metrics/
3•blenderob•12m ago•0 comments

The Idiot Sandwich – On Embedding Alt Text

https://shkspr.mobi/blog/2025/11/the-idiot-sandwich-on-embedding-alt-text/
1•blenderob•13m ago•0 comments

200 Lines of Python beats $50M supercomputer – Navier-Stokes at Re=10⁸ [pdf]

https://philpapers.org/archive/CAMIIA-3.pdf
2•jcamlin•15m ago•2 comments

Hacker News AI newsletter – weekly round up of the most popular AI links from HN

https://hackernewsai.com
3•alexgotoi•15m ago•3 comments

So you wanna build a local RAG?

https://blog.yakkomajuri.com/blog/local-rag
4•pedriquepacheco•16m ago•0 comments

Happiness research doesn't make you happy

https://www.technotheoria.org/p/happiness-research-doesnt-make-you
1•paulpauper•19m ago•0 comments

Lowtype: Elegant Types in Ruby

https://codeberg.org/Iow/type
6•birdculture•21m ago•1 comments

New version of HugstonOne with Qwen Next 80B support and Memory

https://github.com/Mainframework/HugstonOne/releases/tag/HugstonOne_Enterprise_Edition_with_memory
1•trilogic•21m ago•0 comments

The Neoliberal Era Was Not Pro-Market Enough

https://www.richardhanania.com/p/the-neoliberal-era-was-not-pro-market
2•paulpauper•22m ago•0 comments

Airloom – 3D Flight Tracker

https://objectiveunclear.com/airloom.html
8•azinman2•22m ago•1 comments

Beads_viewer: Keyboard-driven terminal interface for the Beads issue tracker

https://github.com/Dicklesworthstone/beads_viewer
2•latchkey•26m ago•0 comments

Shrinking While Linking

https://www.tweag.io/blog/2025-11-27-shrinking-static-libs/
1•synergy20•26m ago•0 comments

(Digital) Elbows Up

https://pluralistic.net/2025/11/28/disenshittification-nation/
2•hn_acker•28m ago•0 comments

Lobsters Interview

https://susam.net/my-lobsters-interview.html
1•blenderob•29m ago•0 comments

Useful Black Friday dev resources I came across today

https://github.com/greatfrontend/black-friday-cyber-monday-deals
3•demon1421•31m ago•0 comments

Best URL Shortener – super clean / no ads

https://svwt.cc
5•swiftvault•33m ago•1 comments

The Fat-Tailed Sheep on the First Fleet; Australia's First Sheep

https://www.singletonmills.com/sydney-first-sheep.html
4•Y_Y•34m ago•1 comments

Stellantis Is Spamming Owners' Screens with Pop-Up Ads for New Car Discounts

https://www.thedrive.com/news/stellantis-is-spamming-owners-screens-with-pop-up-ads-for-new-car-d...
21•cf100clunk•34m ago•3 comments

True P2P Email on Top of Yggdrasil Network

https://github.com/JB-SelfCompany/Tyr
19•basemi•36m ago•1 comments

Show HN: Bodge.app – μFaaS for hacked-together personal tools and small projects

https://bodge.app/
4•azdle•36m ago•0 comments

Show HN: An AI powered Welcome Note Generator in Go (Moderation and LLM and UI)

https://github.com/vnaveen-mh/welcome-note-generator
2•vnaveen9296•36m ago•0 comments

A complete list of free Black Friday audio plugins and sample packs

https://bedroomproducersblog.com/2025/11/28/black-friday-freebies-2025/
3•kkinbpb•37m ago•3 comments

Dutch chipmaker Nexperia urges Chinese units to help restore supply chain

https://www.reuters.com/world/china/dutch-chipmaker-nexperia-urges-chinese-units-help-restore-sup...
6•ilamont•41m ago•1 comments

Ask HN: How to Differentiate a General Agent from Manus?

6•bingwu1995•41m ago•1 comments