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?

Sloptastic

https://successfulsoftware.net/2026/08/10/sloptastic/
1•hermitcrab•24s ago•1 comments

Gemini is Cooked but GCP is Cooking

https://newsletter.semianalysis.com/p/gemini-is-cooked-but-gcp-is-cooking
1•bhouston•44s ago•0 comments

Agents Remind Me of Sculpting

https://dmytrokrasun.com/posts/agents-remind-me-of-sculpting/
2•krasun•1m ago•0 comments

Intel plans $15B stock offering as AI demand accelerates

https://www.cnbc.com/2026/08/10/intel-intc-stock-offering-ai.html
2•cramer4next•1m ago•0 comments

Mental health startup graveyard v1.2: 542 dead companies, seven patterns

https://mentalium.me/en/research/mental-health-startup-graveyard-v1-2/
1•trubetskov•2m ago•0 comments

Claude breached 3 firms. Phinq holds the tool call that would've stopped it

https://www.phinq.co/
1•Hythamh12•3m ago•0 comments

Asynchronous I/O in DuckDB: Work, Thread, Work

https://duckdb.org/2026/07/31/asynchronous-io
1•pdet•3m ago•0 comments

The Malleable HTML File Specification

https://malleablehtmlfile.com/
1•akagusu•4m ago•0 comments

When Agentic Glue Melts: Exploiting Cloudflare Code Mode and Workers

https://research.checkpoint.com/2026/when-agentic-glue-melts/
1•shahartal•4m ago•0 comments

50k Boat Names

https://www.beautifulpublicdata.com/boat-names/
3•jonathanmkeegan•6m ago•0 comments

Signal is working on a paid option to create an account without a phone number

https://aboutsignal.com/news/signal-login-registration-without-a-phone-number/
2•Cider9986•6m ago•0 comments

We 10×Ed Our AWS Bill by Checking Our AWS Bill

https://ultrathink.art/blog/the-cost-dashboard-that-couldnt-see-itself
2•justinpaulson•7m ago•0 comments

If you don't hear sirens, police are sure you'll feel Rumbler's acoustic assault

https://www.latimes.com/california/story/2026-08-10/lapd-rolls-out-rumbler-siren-some-fear-acoust...
2•ck2•7m ago•1 comments

Bring Back the Blue-Book Exam

https://www.theatlantic.com/magazine/2026/09/higher-education-in-person-written-exams/687954/
1•mooreds•9m ago•0 comments

Using Claude Code to reclaim mobile app privacy

https://www.thatprivacyguy.com/blog/using-claude-to-reclaim-privacy/
1•AlexanderHanff•10m ago•1 comments

Video: Elephant's leg gets trapped in an EV charger cable, mom takes out charger

https://evwire.com/p/elephant-attacks-ev-charger-china-puer-yunnan
1•juurikas•11m ago•0 comments

Apple Briefly Posts China Guide for Connecting Siri to Qwen AI

https://www.macrumors.com/2026/08/10/apple-posts-guide-for-connecting-siri-to-qwen-ai/
3•tosh•12m ago•0 comments

Category Theory Illustrated: From Sets to Categories

https://abuseofnotation.github.io/category-theory-illustrated/02_category/
1•frenchie_sans•12m ago•0 comments

The agent principal-agent problem

https://crawshaw.io/blog/agent-principal-agent
1•mooreds•13m ago•0 comments

Banking AI XSS: The exploit is in the payment reference

https://positive.security/blog/banking-ai-xss
3•breakingsystems•13m ago•0 comments

The Problem with Vibe-Coded Flattery

https://tedium.co/2026/08/09/vibe-coding-insincerity/
1•speckx•14m ago•0 comments

Turn your AI chat into a document generation engine

https://docuqueue.com/mcp
1•dvcoolarun•14m ago•0 comments

Training was just a side effect

https://fffej.substack.com/p/training-was-just-a-side-effect
1•mooreds•15m ago•0 comments

A Promising Heart Drug Fails, Challenging a Long-Held Theory of Disease

https://www.nytimes.com/2026/08/06/science/heart-disease-drug-fails-novo-nordisk.html
1•bhouston•16m ago•1 comments

Show HN: Online Speedometer

https://kmspeedometer.com/
1•artiomyak•17m ago•0 comments

I explored Tokyo and found peace there

https://www.kulman.sk/en/how-i-explored-tokyo-and-found-peace/
2•ig0r0•20m ago•0 comments

Deslopifying

https://martinsos.com/posts/deslopifying
1•matijash•21m ago•0 comments

Wellington second-hand bookstore's mysterious orders

https://www.rnz.co.nz/life/books/wellington-second-hand-book-store-s-mysterious-orders
2•lostlogin•21m ago•0 comments

Gigantic DapuStor R6060 512TB E2 NVMe SSD Shown at FMS 2026 – ServeTheHome

https://www.servethehome.com/gigantic-dapustor-r6060-512tb-e2-nvme-ssd-shown-at-fms-2026/
3•rbanffy•22m ago•0 comments

Joint Letter of AFC, Concacaf and UEFA

https://www.uefa.com/news-media/news/02a8-21501c254976-ca8bc2039a0f-1000--open-letter-to-the-foot...
3•tcp_handshaker•22m ago•0 comments