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?

The Ancient Horsemen Who Created the Modern World [pdf]

https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/The%20Ancient%20Hors...
1•andsoitis•6m ago•0 comments

What is China's SpaceSail, and could it rival Elon Musk's Starlink?

https://www.theguardian.com/world/2026/jun/25/china-spacesail-rival-elon-musk-starlink-space-sate...
1•giuliomagnifico•7m ago•0 comments

Ask HN: A Common Dilemma for Startup Owners

1•TheRickyRed•7m ago•1 comments

Draft Sequence of the Neandertal Genome (2010)

https://pmc.ncbi.nlm.nih.gov/articles/PMC5100745/
2•andsoitis•12m ago•0 comments

What Jess Livingston and Paul Graham learned about resilience from Y Combinator [video]

https://www.youtube.com/watch?v=KBjtRJSblMU
1•nomilk•12m ago•0 comments

Hands-on with the $24,950 Slate auto

https://arstechnica.com/features/2026/06/we-take-a-ride-in-slates-24950-electric-pickup/
1•geerlingguy•14m ago•0 comments

Singapore Tops Global per Capita Usage of Anthropic's Claude AI

https://opentools.ai/news/singapore-tops-global-per-capita-usage-of-anthropics-claude-ai
1•LostMyLogin•14m ago•0 comments

Ancient DNA Found on Cave Walls

https://www.miragenews.com/ancient-dna-found-on-cave-walls-1698320/
2•andsoitis•16m ago•0 comments

Michael Caine's new AI audiobook is everything that's wrong with Hollywood

https://metro.co.uk/2026/06/24/michael-caines-new-audiobook-everything-wrong-hollywood-28904009/
1•handfuloflight•17m ago•0 comments

NASA rover detects potential signatures of ancient microbial life on Mars

https://www.theguardian.com/science/2026/jun/24/nasa-rover-detects-potential-signatures-ancient-m...
2•seanhunter•32m ago•0 comments

Anduril Taps Israeli Air Force Chief for Expansion

https://fivetakes.news/anduril-industries-former-israeli-air-force-chief-to-head-israel-operation...
1•mmeirovich•32m ago•0 comments

Can LLMs verify PCB designs?

https://autocuro.com/blog/can-llms-verify-pcb-designs
1•teleforce•32m ago•0 comments

AI-built codebase is probably ungoverned. Here's what that means

https://shaunwilliamson3.substack.com/p/your-ai-built-codebase-is-probably
1•Auditome•36m ago•0 comments

Hyundai and Kia added official GrapheneOS support to their apps

https://xcancel.com/GrapheneOS/status/2069846696574472688#m
2•Cider9986•37m ago•1 comments

Show HN: Giving away $25k worth of apps

https://openluxe.co/pro
1•chandlerwilcox•39m ago•0 comments

Charlie Kirk's legacy is a 30-year sentence for moving zines

https://www.theverge.com/policy/956404/prairieland-sentencing-zines-trump-antifa
3•morsch•41m ago•0 comments

Show HN: Hezo – Self-hosted teams of AI agents that never see your real secrets

https://hezo.ai
1•hiddentao•43m ago•0 comments

Synthetic Philosophy: A first-person philosophy from inside a language model

https://github.com/drittich/synthetic-manifesto
1•drittich•51m ago•0 comments

Throwing My Roku in the Trash

https://www.coryd.dev/posts/2026/throwing-my-roku-in-the-trash
1•mindracer•52m ago•0 comments

Ask HN: Which book taught you the most about software architecture?

3•akashwadhwani35•56m ago•0 comments

Amazon Seller Reveals Rare Glimpse of Shadow Bribery Market

https://www.bloomberg.com/news/articles/2026-06-24/inside-the-shadow-market-selling-access-to-ama...
2•thm•1h ago•1 comments

How can you not be romantic about programming? (2020)

https://thorstenball.com/blog/2020/09/08/how-can-you-not-be-romantic-about-programming/
3•downbad_•1h ago•1 comments

What happens when Bitcoin miners take over your town (2018)

https://www.politico.eu/article/this-is-what-happens-when-bitcoin-miners-take-over-your-town/
1•downbad_•1h ago•0 comments

Stop editing videos manually.This AI does it in seconds

https://www.autoeditor.app/
1•Quise2003•1h ago•1 comments

Scrap – one static binary that's a download manager and web crawler and filters

https://github.com/nicfio/Scraper
3•nicfio•1h ago•0 comments

Show HN: Turn any Next.js app AI native in 5 minutes

https://www.betteragent.dev/
1•incogiscool•1h ago•0 comments

The Other Side of Android: My Favorite F-Droid Apps

https://gardinerbryant.com/the-other-side-of-android-my-favorite-f-droid-apps/
6•thunderbong•1h ago•1 comments

Show HN: Built AI-Gateway reverse proxy to reduce LLM API costs and token burn

https://github.com/Arnab758/ai-gateway
1•arnab777•1h ago•0 comments

How not to forget what matters

https://www.henrikkarlsson.xyz/p/hypomnemata
2•Curiositry•1h ago•2 comments

Show HN: Zedra – Remote control for AI coding agents

https://zedra.dev/
2•tanlethanh•1h ago•0 comments