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?

Modelling Actors with Redex: Part I

https://eighty-twenty.org/2016/08/18/redex-iswim
1•tonyg•1m ago•0 comments

Show HN: PowerScope – a web based interface for the Power-Z KM003C

https://blog.oxplot.com/powerscope/
1•oxplot•1m ago•0 comments

Show HN: An interactive story about living on IRC in the '90s

https://eyearesee.winkingfig.com
1•sascotto•2m ago•0 comments

Tether bought 14T of gold for USDT reserves in second quarter

https://www.mining.com/web/tether-bought-14-tons-of-gold-for-usdt-reserves-in-second-quarter/
1•speckx•2m ago•0 comments

How to Make Something People (Actually) Give a Shit About

https://www.joanwestenberg.com/p/how-to-make-something-people-actually
1•surprisetalk•3m ago•0 comments

The

https://worldwininternationaenter.blogspot.com/?m=1
1•Worldwin77•3m ago•0 comments

Simplified Technical English

https://en.wikipedia.org/wiki/Simplified_Technical_English
1•patrakov•4m ago•0 comments

How Polymarket Works and How to Backtest Prediction Strategies in Python

https://www.reddit.com/r/Polymarket/comments/1vedjgz/pythonbased_backtesting_for_polymarket_with_...
1•syumei•4m ago•0 comments

Show HN: Headroom – warns you before your AI chat starts forgetting

https://github.com/ZM-BAD/headroom
1•zm_bad•5m ago•0 comments

Series or Parallel: the fork that decides hybrid aviation

https://www.geaerospace.com/news/press-releases/ge-aerospace-partners-nasa-beta-technologies-and-...
1•r2sk5t•5m ago•0 comments

The Allure and Peril of Riding an Alaskan Wave for Six Miles

https://www.nytimes.com/2026/08/02/us/bore-tide-surfing-alaska.html
1•whack•5m ago•0 comments

Show HN: Swath – parallel S3 listing without knowing the key distribution

https://github.com/varveio/swath
1•sagiba•7m ago•1 comments

AI database chat: ask in plain language, review the query, get answers

https://plugins.jetbrains.com/plugin/33126-asksql
1•technoscripts•7m ago•0 comments

Transforms complex documents like PDFs and Office docs into Markdown/JSON

https://github.com/opendatalab/mineru
1•jacquesm•8m ago•0 comments

Putting AI Everywhere Does Not Mean Success

https://msakkal.com/research/ai-everywhere-not-success.html
2•MS8080•8m ago•0 comments

Engineers plan to save the satellite sent to save NASA's Swift mission

https://arstechnica.com/space/2026/08/heres-how-engineers-plan-to-save-the-satellite-sent-to-save...
2•LorenDB•9m ago•0 comments

MiniMax H3 Day-0 Support in ComfyUI: Open Weights, Native Audio, and 2K Video

https://blog.comfy.org/p/minimax-h3-day-0-support-in-comfyui
8•vblanco•9m ago•0 comments

SPF Record Syntax: Mechanisms, Qualifiers, Modifiers, and Macros

https://dmarcguard.io/blog/spf-record-syntax/
2•meysamazad•10m ago•0 comments

The Red Strings Club

https://www.vegard.net/the-red-strings-club-review/
1•meysamazad•10m ago•0 comments

GeoAI: Understanding the New Grammar

https://arkives.in/posts/07/2026/geoai-understanding-the-new-grammar/
1•meysamazad•10m ago•0 comments

Moths That Smell Flowers Through Their Wings

https://gizmodo.com/these-moths-smell-through-their-wings-study-finds-2000791478
1•gmays•11m ago•0 comments

Mastermind of a US Telemedicine Scam Is Enjoying the Luxury Life in Russia

https://istories.media/en/stories/2026/07/29/american-fraudsters-luxury-life-in-russia/
2•obscurette•11m ago•0 comments

SpaceX wins $1.6B Space Force contract for 18 Falcon 9 launches

https://spacenews.com/spacex-wins-1-6-billion-in-launch-orders-for-military-satellite-networks/
2•MarcoDewey•11m ago•0 comments

Godox Transparent Viewfinder Camera C100

https://www.godox.com/product-e/C100.html
2•routeroff•11m ago•0 comments

Agent needs a computer, not a container – introducing Cloudflare/computer

https://blog.cloudflare.com/cloudflare-computer/
1•aofeisheng•12m ago•0 comments

Show HN: An open source user feedback widget

https://www.feedchat.io/
1•visualbinary•13m ago•0 comments

Cloudflare Workers and Containers now support inbound TCP connections and gRPC

https://blog.cloudflare.com/grpc-workers/
1•aofeisheng•13m ago•0 comments

What Happens Inside a RAG Pipeline

https://deeptechrambles.substack.com/p/what-actually-happens-inside-a-rag
1•sd76•14m ago•0 comments

Frame selection is the whole game: notes on making LLMs watch video

https://leoaido.com/how-llms-watch-video/
1•cortexosmain•16m ago•0 comments

Pelles C

https://pellesc.se/
3•Tomte•17m ago•0 comments