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?

Why is AI burying my CV?

https://www.bbc.com/audio/play/p0nrbttp
2•1vuio0pswjnm7•1m ago•0 comments

Tesla Full Self Driving uses bicycle lane in official Denmark approval video

https://politiken.dk/danmark/forbrug/biler/art10875514/Allerede-12-sekunder-inde-i-PR-videoen-beg...
1•Veserv•2m ago•0 comments

Judge Punishes 4 Lawyers After Catching Both Sides Using A.I. In Lawsuit

https://www.nytimes.com/2026/06/09/us/ai-lawyers-sanctioned-mississippi.html
1•thm•2m ago•0 comments

Great Reshuffling of the Agentic Era: The 6 Career Archetypes

https://aidoses.substack.com/p/great-reshuffling-of-the-agentic
1•ryanrad•2m ago•0 comments

Treating pancreatic tumours may have revealed cancer's master switch

https://www.economist.com/science-and-technology/2026/06/12/treating-pancreatic-tumours-may-have-...
1•rndsignals•2m ago•0 comments

The Agentic Payments Map

https://www.fintechbrainfood.com/p/the-agentic-payments-map
1•AnhTho_FR•4m ago•0 comments

Hacker News actively blocking SpaceX IPO submissions

https://news.ycombinator.com
1•curldevnull•5m ago•0 comments

The machine can't be held accountable. You still can

https://pragmaticbuilder.substack.com/p/the-machine-cant-be-held-accountable
2•msolujic•5m ago•0 comments

How's Your Attention Span?

https://alessandracodinha.substack.com/p/hows-your-attention-span
1•gmays•6m ago•0 comments

Show HN: For the messy stage of research, built the Cognir Research Ontology

https://cognir-research.netlify.app/docs
1•sailpvp998•7m ago•0 comments

Uruky: Kagi alternative, EU-based private search engine

https://yeechie.nl/uruky-kagi-alternative-eu-based-private-search-engine
1•speckx•8m ago•0 comments

Ask HN: Influence of Legend of Zelda in Backrooms Movie?

1•dieselgate•8m ago•0 comments

Oracle Shares Tumble Amid Pricey Data-Center Build-Out

https://www.wsj.com/business/earnings/oracle-reports-higher-profit-on-surging-cloud-revenue-5f7d25eb
1•1vuio0pswjnm7•9m ago•0 comments

Reckless: Competitive chess engine written in Rust

https://github.com/codedeliveryservice/Reckless
1•dpcx•9m ago•0 comments

Fail loudly: a plea to stop hiding bugs

https://alejo.ch/3he
1•afc•9m ago•1 comments

Chili peppers of the world: cultivars, species, and heat

https://www.notesfromtheroad.com/desertmexico/chili-peppers.html
2•fanf2•10m ago•0 comments

Show HN: Sketchlog – 100M events compressed to 93 KB using streaming sketches

1•BALAVIGNESH321•10m ago•0 comments

Department of War Publishes Third Release of UAP Files on War.gov/UFO

https://www.war.gov/News/Releases/Release/Article/4515408/department-of-war-publishes-third-relea...
1•bookofjoe•14m ago•0 comments

Making the Invisible Visible

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
1•taylorbuley•15m ago•0 comments

Write for One Person

https://wizardzines.com/comics/write-for-one-person/
2•evakhoury•15m ago•0 comments

Over 400 Arch Linux packages compromised to push rootkit, infostealer

https://www.bleepingcomputer.com/news/security/over-400-arch-linux-packages-compromised-to-push-r...
1•saghm•16m ago•1 comments

FDA Approves New Sunscreen Ingredient (Bemotrizinol) Used in EU/Asia for Years

https://www.healthline.com/health-news/fda-approves-bemotrizinol-new-sunscreen-ingredient
2•pogue•16m ago•1 comments

How to Setup a Local Coding Agent on macOS

https://ikyle.me/blog/2026/how-to-setup-a-local-coding-agent-on-macos
2•kkm•17m ago•0 comments

Ad on the HN front page? Gauntlet AI?

5•tizio13•17m ago•5 comments

Show HN: Nenya – A lightweight, highly secure AI API Gateway/Proxy written in Go

https://github.com/gumieri/nenya
1•garou•19m ago•0 comments

Laid off from Meta, so a few of us built the safest AI-assisted cheating tool

https://aceloop.ai/
1•rosadoft•20m ago•0 comments

Ported my C game to WASM, here's everybug that I hit

http://ernesernesto.github.io/writes/portingmatchmorphosistowasm/
1•birdculture•21m ago•0 comments

Font plague hits US start ups

1•t0mpr1c3•21m ago•0 comments

Show HN: Sifty – Windows cleanup CLI/TUI with local-only AI

https://github.com/Vortrix5/sifty
1•vortrix5•23m ago•0 comments

Show HN: Own one second of 2026 for $1

https://own1second.com
1•hedvion•23m ago•1 comments