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

Scientists discover beer bottle in the Mariana Trench (2024)

https://www.unilad.com/news/scientist-beer-bottle-deepest-point-ocean-mariana-trench-667878-20240213
1•thunderbong•54s ago•0 comments

Goodbye SASS

https://www.redblobgames.com/blog/2025-12-27-goodbye-sass/
1•signa11•4m ago•0 comments

When AI Learns to Experiment Like Us, What Future Are We Building Together?

https://comuniq.xyz/post?t=657
1•01-_-•4m ago•0 comments

CSS Wrapped 2025

https://chrome.dev/css-wrapped-2025/
1•Topfi•7m ago•0 comments

How I Learned to Code

https://nicholaschen.me/blogs/how-i-learned-to-code
2•ushakov•8m ago•0 comments

EasyOCR2 with rust speed. 5X-10x faster than EasyOCR

https://github.com/JaidedAI/EasyOCR/issues/1447
1•prabhatkr•8m ago•0 comments

EPass: Verifier-Cooperative Runtime Enforcement for eBPF

https://ebpf.foundation/epass-verifier-cooperative-runtime-enforcement-for-ebpf/
2•westurner•10m ago•1 comments

PostgreSQL REST API Benchmark: 15 Frameworks Compared

https://npgsqlrest.github.io/blog/postgresql-rest-api-benchmark-2024.html
1•vbilopav•11m ago•0 comments

Things Developers Can Avoid in 2026

https://newsletter.compasscalendar.com/p/77-things-to-avoid-in-2026-developer
2•tylerdane•11m ago•0 comments

Ed25519-CLI – command-line interface for the Ed25519 signature system

https://lib25519.cr.yp.to/ed25519-cli.html
1•INGELRII•17m ago•0 comments

Show HN: MindPick – Turn "pick your brain" requests into paid async answers

https://mindpick.me
1•bogdanmp•21m ago•1 comments

Lengthy trade route is peak globalization

https://www.wsj.com/articles/three-months-19-687-nautical-miles-this-lengthy-trade-route-is-peak-...
2•RyanShook•23m ago•0 comments

Napier's combinators and Böhm's λogarhythms (2021) [pdf]

http://docs.hancock.fastmail.fm.user.fm/arithmetic.pdf
1•aebtebeten•23m ago•0 comments

Why D Programming Language? [video]

https://www.youtube.com/watch?v=teWQbYvPBTg
2•teleforce•24m ago•1 comments

Tips and best practices for working with AI coding agents

https://www.vibekanban.com/vibe-guide
1•cjbarber•24m ago•0 comments

Show HN: Tiny acmecli for ACMEv2 account mgmt and for DNS-persist-01

https://github.com/pawlakus/acmecli
1•plagiat0r•24m ago•0 comments

A Guide to Claude Code 2.0 and getting better at using coding agents

https://sankalp.bearblog.dev/my-experience-with-claude-code-20-and-how-to-get-better-at-using-cod...
1•cjbarber•25m ago•0 comments

Shut Up About the Water

https://prettygoodblog.com/p/shut-up-about-the-water
2•notorious_pgb•26m ago•0 comments

Ask HN: How do you get visibility if you're suuuuper bad at marketing?

2•ClipNoteBook•26m ago•2 comments

Ask HN: If you only needed 200 customers at$49, how would you approach it?

1•OmKadam•27m ago•0 comments

Rainbow Six Siege hack forces Ubisoft to shut down servers

https://www.notebookcheck.net/Rainbow-Six-Siege-hack-forces-Ubisoft-to-shut-down-servers-after-pl...
2•hellel•28m ago•0 comments

U.S. Government Taking over Anthropic

https://dev.to/om_shree_0709/the-1-takeover-how-the-us-government-nationalized-anthropic-3pp6
1•OmShree0709•30m ago•0 comments

Ask HN: Best Ways to Save on Taxes?

1•silexia•30m ago•0 comments

Methanol biotransformation for production of plastic monomer L-lactate in yeast

https://www.nature.com/articles/s41467-025-65793-x
2•PaulHoule•31m ago•0 comments

Interesting things I found this year

https://www.karlsnotes.com/interesting-things-i-found-this-year/
1•valkrieco•32m ago•0 comments

A lifetime of ad-free documentaries without a recurring bill in this deal

https://www.bleepingcomputer.com/offer/deals/a-lifetime-of-ad-free-documentaries-without-a-recurr...
2•WaitWaitWha•32m ago•1 comments

Calculus for the Modern Engineer

https://github.com/michiganrobotics/rob201
2•ArmageddonIt•33m ago•1 comments

The mongo db situation is crazy [video]

https://www.youtube.com/watch?v=9Wg6tiaar9M
2•kburman•33m ago•0 comments

The Ascendance of Algorithmic Tyranny

https://www.noemamag.com/the-ascendance-of-algorithmic-tyranny/
4•nanmu42•34m ago•0 comments

All my Deutschlandtickets gone: Fraud at an industrial scale [video]

https://media.ccc.de/v/39c3-all-my-deutschlandtickets-gone-fraud-at-an-industrial-scale
1•Kyro38•36m ago•0 comments