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?

I Gave an AI Agent Access to My Passwords. Here's What Happened.

https://www.wsj.com/tech/ai/1password-for-claude-ai-agents-password-manager-111a7a8a
1•bookofjoe•1m ago•1 comments

The Day WhatsApp Goes Dark

https://xn--gckvb8fzb.com/the-day-whatsapp-goes-dark/
1•surprisetalk•1m ago•0 comments

Show HN: Proton – A Pure Go, Immediate-Mode GUI Library (Zero CGO)

1•CzaxTanmay•1m ago•0 comments

Overgrown

https://studio.blender.org/projects/overgrown/
1•Tomte•2m ago•0 comments

A Brief History of Flow

https://lareviewofbooks.org/article/max-l-feldman-internet-television-flow-traffic/
1•bryanrasmussen•2m ago•0 comments

Free iPhone Privacy and Security Guide

https://privateorchards.com/
1•PrivateOrchards•2m ago•0 comments

Rendering Real-Time 3D Before GPUs

https://ben3d.ca/blog/rendering-real-time-3d-before-gpus
1•bhouston•3m ago•0 comments

Short sellers notch $8.7B profit as SpaceX shares dip to IPO price

https://www.reuters.com/business/media-telecom/short-sellers-rack-up-87-bln-profit-spacex-slips-b...
1•1vuio0pswjnm7•3m ago•0 comments

First 'true sugar' molecule found in space – offering hints to life's origins

https://www.nature.com/articles/d41586-026-02173-5
1•DemiGuru•4m ago•0 comments

Cloudflare: Post Requests Not Succeeding

https://www.cloudflarestatus.com/incidents/652w59bvnbsj
2•MattIPv4•5m ago•1 comments

Show HN: Local Search Agent – RAG replacement, no embeddings, free tier

https://github.com/wiss84/local-search-agent
1•Wissam-Metawee•6m ago•0 comments

Y-data, Pandas, polars and analytics in 1

https://github.com/data-centt/percentify
1•Daniel15568•6m ago•1 comments

Mesa-Optimization Is Destroying Education

https://letter.palladiummag.com/p/new-article-mesa-optimization-is
1•jger15•7m ago•0 comments

Nxsys, Signalling and Interlocking Simulator

https://www.nycsubway.org/wiki/NXSYS,_Signalling_and_Interlocking_Simulator
2•gregsadetsky•10m ago•0 comments

Google required to open up to AI, search engine rivals under EU-mandated changes

https://www.reuters.com/world/google-required-open-up-ai-search-engine-rivals-under-eu-mandated-c...
3•1vuio0pswjnm7•10m ago•0 comments

Sleep Is Air New Zealand's Strategy

2•r2sk5t•10m ago•0 comments

'I felt Holden was talking to me alone': The Catcher in the Rye at 75

https://www.theguardian.com/books/2026/jul/16/i-felt-holden-was-talking-to-me-alone-the-catcher-i...
1•theanonymousone•11m ago•0 comments

Amsterdam activists throw acid at Microsoft datacenter project

https://www.theregister.com/ai-and-ml/2026/07/16/amsterdam-activists-throw-acid-at-microsoft-data...
1•root-parent•11m ago•0 comments

Europe Won't Live by Deporting

https://dark.ronacher.eu/2026/7/17/live-by-deporting/
1•pmbanugo•12m ago•0 comments

Google Gemini launch delayed as tech falls short of internal goals

https://www.reuters.com/business/google-gemini-launch-delayed-tech-falls-short-internal-goals-blo...
2•1vuio0pswjnm7•13m ago•0 comments

Every after party worth going to during Startup School 2026

https://startupschoolafter.party/
1•timetoogo•13m ago•0 comments

Of forks and clones and package management

https://theconsensus.dev/p/2026/07/11/of-forks-and-clones-and-package-management.html
1•eatonphil•14m ago•0 comments

Kreo – Postgres to Instant REST API, Redis Cache and WebSockets

https://kreo.work/
1•KREO_•15m ago•1 comments

Build Economy Is All about Build and None about Economy

https://pawelbrodzinski.substack.com/p/build-economy-is-all-about-build
1•flail•15m ago•0 comments

deleted

https://agents-design.com
1•gineko•15m ago•0 comments

I measured my multi-agent idea. It failed. I shipped the autopsy instead

https://github.com/jonathascordeiro20/bioma-framework
2•jonathasc•16m ago•0 comments

As Trump accuses China of election theft, Xi pitches Beijing as AI leader

https://www.cnn.com/2026/07/17/china/china-ai-conference-analysis-intl-hnk
2•blakean•17m ago•0 comments

Agents Need Shells, Not Selves

http://marv1nnnnn.com/signals/journal/agents-need-shells-not-selves
2•marv1nnnnn•18m ago•0 comments

A Vacuum of the Imagination

https://angadh.com/rockets-1
1•surprisetalk•20m ago•0 comments

Show HN: Slidum – A player for the HTML presentations AI writes

https://slidum.com
1•oandre•20m ago•0 comments