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?

Electrostates vs. petrostates: the US, China, and the Hormuz energy shock

https://www.brookings.edu/articles/electrostates-vs-petrostates-the-us-china-and-the-hormuz-energ...
1•andsoitis•37s ago•0 comments

Show HN: Sqnc.run – a live cipher stream inspired by number stations

https://sqnc.run
1•nee_oo_ru•43s ago•0 comments

Rocket Lab's GHOST packs a whole launch pad into shipping containers

https://investors.rocketlabcorp.com/news-releases/news-release-details/rocket-lab-unveils-ghost-d...
1•MarcoDewey•43s ago•0 comments

A Lightweight Rootless Container Sandbox for Claude Code and Codex

https://medium.com/@Koukyosyumei/h5i-a-lightweight-rootless-container-sandbox-for-claude-code-and...
1•syumei•1m ago•0 comments

Running Handshake and Stateless MCP in the Same Gateway

https://wcollins.io/posts/2026/mcp-stateless-flip-and-portable-packs/
1•mooreds•1m ago•0 comments

Claude Code is leaking real email address as a User-Agent string in curl command

https://github.com/anthropics/claude-code/issues/78431
1•matada_•2m ago•0 comments

TikTok x dynosaur,x bogus,x_gnarly signature algoryhtims

https://github.com/n1tr00-10/tiktok-signature
1•n1tr00•4m ago•0 comments

Show HN: Compare local pest control companies before you hire

https://pestdirect.com
1•not_wowinter13•5m ago•0 comments

Stealing Reasoning Traces from Proprietary LLM APIs

https://twitter.com/kotekjedi_ml/status/2087147042888114428/photo/1
1•tosh•6m ago•0 comments

Show HN: Auracommit – Token-efficient AI Git commit generation from Git diff

https://github.com/tigerlang/auracommit
1•tiger-langer•6m ago•0 comments

AI/Data job market tracker for the DACH region

https://github.com/Chrisinho8/DACH-data-job-market
1•Chrisinho8•6m ago•0 comments

Airship: Visual Editor for Your Codebase

https://github.com/0xnyn/airship
1•handfuloflight•8m ago•0 comments

Show HN: A Three.js simulator for the Aug 12 total solar eclipse

https://make3dmap.com/solar-eclipse-2026-simulator
1•jaredliu_bravo•8m ago•0 comments

Matt Mullenweg's Messages Went Missing Amid a Failed Backup and Two Lost Devices

https://www.therepository.email/matt-mullenwegs-messages-went-missing-amid-a-failed-backup-and-tw...
1•rpgbr•8m ago•0 comments

NBER: AI Financial Advice [pdf]

https://www.nber.org/system/files/working_papers/w35574/w35574.pdf
2•m-hodges•9m ago•0 comments

Show HN: The self-improving QA agent for software teams

https://vostride.com
3•pranshuchittora•9m ago•0 comments

Manus will return to operating as an independent company

https://manus.im/blog/a-note-to-our-users
2•thm•9m ago•0 comments

Politeness Theory

https://en.wikipedia.org/wiki/Politeness_theory
1•rzk•9m ago•0 comments

Load What You Need: Smaller Versions of Mutililingual Bert (2020) [pdf]

https://aclanthology.org/2020.sustainlp-1.16.pdf
1•Topfi•12m ago•0 comments

LLMs for Theory Building

https://newsletter.squishy.computer/p/llms-for-theory-building
1•artur_makly•12m ago•0 comments

Show HN: Instancez – Supabase Drop-In Replacement; Declarative and Single-Binary

https://github.com/instancez/instancez
1•saedx1•12m ago•1 comments

Greenland issues "strong warning" as American oil firm illegally drills wells

https://www.theguardian.com/world/2026/aug/08/greenland-iwarning-trump-linked-oil-firm-prepares-d...
18•ck2•15m ago•7 comments

Who Are the Token Brokers?

https://vectoral.com/blog/who-are-the-token-brokers
3•mlenhard•15m ago•0 comments

AI Is Dead. Organoids Are Alive

https://www.wired.com/story/organoids-lab-grown-brains-neural-networks/
1•Brajeshwar•16m ago•1 comments

Show HN: A capable AI assistant with its own inbox

https://www.hellodeck.ai
1•stasiac•16m ago•0 comments

Fake TikTok post led Romanians to attack ambulance with rocks and axes

https://universul.net/fake-tiktok-post-led-romanians-to-attack-ambulance-with-rocks-and-axes/
2•croes•17m ago•0 comments

Maintaining Security-Critical Project Where I Don't Read the Code

https://aaronstannard.com/a-security-critical-project-where-i-dont-read-the-code/
1•Aaronontheweb•18m ago•0 comments

Allegations cross state lines as SpaceXAI hit with $430M in new lien filings

https://www.bizjournals.com/memphis/news/2026/08/05/spacexai-liens-darana-hybrid-southaven.html
1•croes•18m ago•0 comments

Anthropic says it will watermark text generated by its AI models

https://techcrunch.com/2026/08/11/anthropic-says-it-will-watermark-text-generated-by-its-ai-models/
1•ashurandi•18m ago•0 comments

Unitree's Shanghai IPO more than 8k times oversubscribed by retail investors

https://www.reuters.com/world/asia-pacific/unitrees-shanghai-ipo-more-than-8000-times-oversubscri...
2•tim333•19m ago•1 comments