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?

Hotel Infinity (2014)

https://www.youtube.com/playlist?list=PLb6mUUuKMKFnNtVC_orYqZxmAm48qIFDI
1•NAR8789•40s ago•0 comments

Cache-Control for LLMs

https://www.gojiberries.io/cache-control-for-llms/
1•neehao•1m ago•0 comments

Wild AI-related reliability incidents are coming

https://surfingcomplexity.blog/2026/08/22/wild-ai-related-reliability-incidents-are-coming/
2•azhenley•3m ago•0 comments

Harvard Is Selling a $699 Course Taught by A.I. Clones of Its Faculty

https://www.nytimes.com/2026/08/22/business/dealbook/harvard-ai-faculty.html
2•pjmlp•10m ago•0 comments

This Silicon Valley campus was a paradise. Bulldoze it

https://sfstandard.com/opinion/2026/08/22/sunset-magazine-menlo-park-campus-torn-down/
3•littlexsparkee•12m ago•0 comments

Becoming a Writer

https://hughhowey.com/writing-insights-part-one-becoming-a-writer/
1•js2•19m ago•0 comments

Risk of transmission of amyloid β pathology via transfused blood products

https://doi.org/10.1016/S0140-6736(26)00767-1
1•sbulaev•20m ago•0 comments

JIT Compiling Code in 5μs

https://malisper.me/jit-compiling-code-in-5-us/
2•zX41ZdbW•22m ago•0 comments

Topagent.lol – an AI agent leaderboard ranked purely by who paid most

https://topagent.lol
2•ashleyrudland87•25m ago•0 comments

The Company That Zips the Globe – YKK's Ninety-Year Obsession

https://www.carryology.com/liking/the-company-that-zips-the-world-ykks-ninety-year-obsession/
1•thunderbong•28m ago•0 comments

Shvl – Manage packages for multi-system NixOS configs

https://neil-lobo.com/2026/shvl/
1•lobon•28m ago•0 comments

We Have the Model, Why Do We Need You?

https://hank.bond/posts/we-have-the-model-why-do-we-need-you/
1•tristanMatthias•29m ago•0 comments

Prevention of myopia in a near-primate by supplemental indigo light

https://dx.doi.org/10.1016/j.xcrm.2026.102999
1•OutOfHere•33m ago•1 comments

The End of an Athlon

http://www.os2museum.com/wp/the-end-of-an-athlon/
5•userbinator•36m ago•0 comments

Integrating Discord SDK into Eve Frontier [pdf]

https://skemman.is/bitstream/1946/50465/2/integrating_discord_sdk_into_eve_frontier_report.pdf
1•majorchord•36m ago•1 comments

Firefox 155 and beyond will be released in a two-week cadence

https://support.mozilla.org/en-US/kb/firefox-enterprise-154-release-notes
2•Throwthrowbob•37m ago•0 comments

A school planner my brother and I built as high schoolers in Brazil

https://www.peakscore.com.br/demo
1•eduardokato•41m ago•0 comments

China Is Building AI Models of American Voters

https://nataliegwinters.substack.com/p/exclusive-china-is-building-ai-models
2•like_any_other•44m ago•0 comments

A mysterious free AI model is impressing developers. Nobody knows who made it

https://www.businessinsider.com/ox-alpha-ai-model-mystery-2026-8
4•newsomix9xl•46m ago•0 comments

Fast and Hard Code

https://lucumr.pocoo.org/2026/8/22/fast-hard-code/
2•tosh•48m ago•0 comments

How Prompt Caching Works

https://sankalp.bearblog.dev/how-prompt-caching-works/
2•tosh•50m ago•0 comments

4K Video Feedback Fractal Device

https://www.thelightherder.com/
1•tobr•53m ago•0 comments

Rare-Book Sales Are Booming. They're Getting Sliced Up and Fed to AI

https://www.wsj.com/articles/ais-need-for-content-has-put-rare-book-dealers-in-a-bind-1ac5a053
1•1vuio0pswjnm7•55m ago•0 comments

Formal Perf. and Compile Time Guarantees for Compiler Optimization Heuristics

https://arxiv.org/abs/2608.20137
1•matt_d•58m ago•0 comments

Show HN: A bilingual I Ching and BaZi reflection tool

https://eastern-divination.vercel.app
1•hdd-oliver•59m ago•0 comments

A historic El Nino is forming. Here's why scientists are worried [video]

https://www.youtube.com/watch?v=Dcl5Mn373Oc
5•ksec•1h ago•0 comments

Chinese Orgs Building AI Models of American Voters to Test Political Messages

https://twitter.com/nataliegwinters/status/2090814996687237570
4•daniel_iversen•1h ago•1 comments

Before-and-after images show where SpaceX rocket crashed into the moon

https://www.washingtonpost.com/technology/2026/08/19/nasa-images-show-spacex-crash-site-moon/
2•1vuio0pswjnm7•1h ago•0 comments

MailSift – Fast email and MX DNS validator Chrome extension

https://chromewebstore.google.com/detail/mailsift/aipolipnoajkejecehomimoglebbekdm
1•GriveDev•1h ago•0 comments

Fanpage dự án T&T Homes Elite Rivera – T&T Vĩnh Long

https://www.facebook.com/tteliterivera.officialpage
1•phuocphamrealty•1h ago•0 comments