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?

Building an S3 client with 20x more throughput and single core [video]

https://www.youtube.com/watch?v=-p-Xm7VEqSk
1•jorangreef•1m ago•0 comments

YKK Sells 10B Zippers a Year. How Did It Get So Big?

https://www.wsj.com/style/fashion/ykk-sells-10-billion-zippers-a-year-how-did-it-get-so-big-253a24a2
1•hbcondo714•2m ago•0 comments

Show HN: We quantized Qwen3.6-35B-A3B to 2-bit: 12.3 GB, 225 tok/s on a 4090

https://huggingface.co/EschaLabs/Qwen3.6-35B-A3B-Escha-W2
1•yzh•5m ago•0 comments

2.75-FUNdaMENTALs of Design(a.k.a. Precision Engineering Basics) by Alex Slocum [video]

https://www.youtube.com/watch?v=wgMq7yha9wU&list=PLksE8LDXGXl_MQHKr2DqhfDC64W7QHjxL
1•pillars•5m ago•0 comments

React's Programming Model, Compiled

https://octanejs.dev
1•acmnrs•6m ago•0 comments

New MCP Protocol: Bringing MCP 2026-07-28 to Claude

https://claude.com/blog/bringing-mcp-2026-07-28-to-claude
1•BearBest•8m ago•0 comments

The Strain in Your Brain

https://anirudh.fi/strain
1•signa11•8m ago•0 comments

Ask HN: Is Reddit trying to kill old Reddit?

2•lostaccount•13m ago•1 comments

Hollywood Stopped Making Movies in Hollywood

https://www.statsignificant.com/p/how-hollywood-stopped-making-movies
1•gmays•18m ago•0 comments

'Odyssey' translator Emily Wilson: Nolan shouldn't have written movie himself

https://www.npr.org/2026/07/29/nx-s1-5910645/odyssey-translator-emily-wilson-christopher-nolan
3•aanet•19m ago•1 comments

Show HN: Alarium – a live 3D flight tracker built on community ADS-B

https://www.alarium.tech
1•brandonponce•21m ago•0 comments

After rewriting SQLite in Rust, Turso turns its sights on Postgres

https://www.theregister.com/databases/2026/07/29/after-rewriting-sqlite-in-rust-turso-turns-its-s...
5•theanonymousone•24m ago•0 comments

Kirin XE90 and X90 Plus mark Huawei's first PC processors despite sanctions

https://www.notebookcheck.net/Kirin-XE90-and-X90-Plus-mark-Huawei-s-first-public-unveiling-of-PC-...
2•yogthos•25m ago•0 comments

Lose an engine at V1, Falcon 10x holds power on the good side [pdf]

https://www.dassault-aviation.com/wp-content/blogs.dir/1/files/2026/06/Falcon-10X-backgrounder-in...
1•r2sk5t•26m ago•1 comments

APFS is case-insensitive by default

https://swild.dev/dev/apfs-case-insensitive/
2•wslh•27m ago•1 comments

Show HN: a Rust coding agent that is compatible with Claude Code plugins/skills

https://github.com/KonghaYao/peri
2•sowild_fun•29m ago•0 comments

US Considers Creating Finra-Like Watchdog to Vet Top AI Models

https://www.bloomberg.com/news/articles/2026-07-17/us-considers-creating-finra-like-watchdog-to-v...
2•achow•30m ago•1 comments

Musk's X says Australia social media ban crackdown undermines international law

https://www.reuters.com/legal/government/musks-x-says-australia-social-media-ban-crackdown-underm...
2•1vuio0pswjnm7•31m ago•1 comments

Cocoa prices are easing. So why is chocolate still so expensive?

https://www.cnbc.com/2026/07/26/cocoa-prices-chocolate-lindt-barry-callebaut-nestle.html
2•walterbell•31m ago•1 comments

Closed models refuse to help researcher swat Linux bug

https://www.theregister.com/ai-and-ml/2026/07/29/closed-models-refuse-to-help-researcher-swat-lin...
1•justworks•33m ago•0 comments

NSF pilots 4-year PhDs with industry research placements

https://www.nsf.gov/news/nsf-partners-universities-industry-pilot-initiative-four
23•osnium123•35m ago•1 comments

AI Facebook Ads Creator: Create High-Converting Video Ads

https://textideo.com/use-cases/facebook-ad-video-generator
1•cloaud•35m ago•0 comments

Things You Never Hear

1•mr-pink•36m ago•0 comments

Show HN: Numbat – Agent Runtime Detection and Response

https://github.com/perplexityai/numbat
1•kpollls•38m ago•0 comments

Roundup of August 2026 Bootstrapper Events

https://bootstrappersbreakfast.com/2026/07/28/roundup-of-august-2026-bootstrapper-events/
1•skmurphy•46m ago•1 comments

Scientists find a simple way to stop cavities without drilling

https://www.sciencedaily.com/releases/2026/07/260729010719.htm
3•ninjahawk1•47m ago•0 comments

Kuna: Decompiler Development in the Age of Coding Agents

https://noelo.org/blog/kuna-release/
3•matt_d•49m ago•0 comments

Show HN: How we use AI agents for support in an open-source project (Seafile)

2•Daniel-Pan•50m ago•0 comments

OpenAI cyberattack caused by rogue AI agent worse than initially reported

https://www.tag24.com/en/tech/openai-reveals-cyberattack-caused-by-rogue-ai-agent-was-worse-than-...
1•geoffbp•52m ago•0 comments

Nvidia's chips may be novel, but its 'circular financing' isn't

https://www.ft.com/content/33714af0-a646-4271-8078-49a87182917f
2•justworks•55m ago•0 comments