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?

TotalBodyIQ, an iOS workout planner that assumes your week will go wrong

https://apps.apple.com/us/app/totalbodyiq-workout-coach/id6760733953
1•andytotalbodyiq•1m ago•0 comments

What should I use instead of Firefox on Android?

1•trystrawberries•4m ago•0 comments

The Flying Pig Problems

https://tianyin.github.io/flying_pig_problems.html
1•rayval•7m ago•0 comments

Design files are becoming text

https://polotno.com/blog/json-design-format
1•Interfaces_pro•10m ago•0 comments

Larry Ellison Went on Borrowing Spree to Bankroll His Son's Warner Bros. Bid

https://www.wsj.com/finance/larry-ellison-warner-bros-loans-49918714
1•JumpCrisscross•11m ago•0 comments

Don't Be Hapless

https://www.paulgraham.com/relres.html
1•nvader•11m ago•0 comments

Ask HN: Does anyone else just want to disconnect from everything?

1•lualover•14m ago•1 comments

Alibaba hikes DeepSeek V4 Flash 0731 output prices by 230%

https://www.stork.ai/newsletter/2026-10-20-alibaba-quietly-tripled-deepseek-prices#lead
3•GloVin•16m ago•1 comments

Legacy of Technology Bubbles

https://medium.com/@smoking2man/legacy-of-technology-bubbles-from-dot-coms-to-web-2-0-b7c97bcfe908
1•Aldus551•18m ago•0 comments

ChatGPT Bulk Delete

https://chatgptbulkdelete.net/
2•vinghunter•20m ago•0 comments

Quantum error correction goes well beyond breakeven

https://arstechnica.com/science/2026/10/quantum-error-correction-goes-well-beyond-breakeven/
1•pveierland•20m ago•0 comments

The Rise of Highly Personal Software

https://bassi.li/articles/customers-build-it-themselves
1•Mikajis•27m ago•0 comments

Pillowfort Is Closing

https://www.pillowfort.social/posts/8413273
10•BrenBarn•27m ago•3 comments

Battlezone Online: BZFlag in the Browser

https://github.com/timriker/bzo
5•indigodaddy•28m ago•1 comments

Kapitsa: New Apple Silicon Optimized Engine Runs Qwen 35B on 160 Tok/S on M4 Pro

https://www.reddit.com/r/LocalLLaMA/comments/1xbdxg3/kflash_benchmarks_of_newly_released_versions...
2•fearandgreed•29m ago•0 comments

CVE-2026-109618 and CVE-2026-109619: What you should do now

https://www.vincentschmalbach.com/cve-2026-109618-and-cve-2026-109619-what-you-should-do-now/
2•vincent_s•32m ago•0 comments

Nvidia Flare Local Inference

https://github.com/NVIDIA/flare-local-inference
1•seddonm1•34m ago•0 comments

Unirail.dev – Plaid for Your Plaids

https://unirail.dev/
2•smashah•35m ago•0 comments

Badkeys: Checking cryptographic public keys for known vulnerabilities

https://badkeys.info/
2•raquuk•36m ago•0 comments

Self-hosted web app for Roborock vacuums that chains cleans

https://github.com/zarifaziz/roborock-webapp
1•zarifaziz08•38m ago•0 comments

Find the right grid, Start with the data

https://comparegrids.com/
1•davidvela•42m ago•0 comments

Show HN: Inca – a free, open-source 3D app that works like Maya 2020

https://incacad.com/
2•v3ai•47m ago•0 comments

Nexus-CLI – Pure Go Bridge to DeepSeek R1/V3 with Claude Code and Ollama Support

https://github.com/xamrayev/nexus-cli
3•xamrayev•56m ago•0 comments

Daytona, a startup building the 'agentic cloud,' valued at $1B

https://fortune.com/2026/10/20/daytona-startup-building-the-agentic-cloud-valued-at-1-billion-in-...
1•taubek•56m ago•0 comments

This Is the Good Scenario?

https://www.nytimes.com/2026/10/18/opinion/ai-bubble-catastrophe-investors-control.html
2•reasonableklout•1h ago•2 comments

3.75-MWh battery system installed indoors at NY affordable housing building

https://www.solarpowerworldonline.com/2026/10/3-75-mwh-battery-system-installed-indoors-at-ny-aff...
4•geox•1h ago•0 comments

Using LLM for confidence scoring is a bad idea

https://rumple.github.io/blog/2026/10/20/asking-llm-for-confidence.html
2•jimauthors•1h ago•0 comments

Major PHP Vulnerability Leaked

https://jackalsyn.com/posts/php-up-2026.html
45•rfarley04•1h ago•10 comments

Ask HN: Have you observed this trend of building "internal vibe-coding apps"?

https://newsletter.pragmaticengineer.com/p/the-pulse-new-trend-of-building-internal
4•joddystreet•1h ago•3 comments

China's Smartphone Makers Turn to Recycled DRAM Chips Amid Memory Shortage

https://biz.chosun.com/it-science/ict/2026/10/20/ITRDSCOXPJD4PF2C6UYUKMAFQQ/
3•mfiguiere•1h ago•0 comments