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?

SpaceX built to separate retail investors from their money

https://seekingalpha.com/news/4613058-spacex-built-to-separate-retail-investors-from-their-money-...
1•nothrowaways•36s ago•0 comments

Braess's paradox: Adding roads to a road network can slow overall traffic flow

https://en.wikipedia.org/wiki/Braess%27s_paradox
1•mhb•37s ago•0 comments

Show HN: Isitsecure – 1-command SAST and DAST and LLM security scanner for web apps

https://github.com/jaurakunal/isitsecure
1•kunaljaura•1m ago•0 comments

The Biggest Conspiracy of All

1•b112•3m ago•0 comments

Let's talk about: LinkedIn ghost jobs

2•xvxvx•4m ago•0 comments

Narrating your blog with Kokoro, a local and open source text-to-speech model

https://bart.degoe.de/narrating-your-blog-with-kokoro-a-local-opensource-model/
1•bartdegoede•5m ago•0 comments

6× faster binary search: from compiled code to mechanical sympathy

https://pythonspeed.com/articles/branchless-binary-search/
1•lumpa•8m ago•0 comments

Show HN: Mosey Parker – find a ride in bikeshare systems worldwide (iOS)

https://moseyparker.com
1•mjmsmith•9m ago•1 comments

CPU vs. FPGA data flow differences explained in a short animation [video]

https://www.youtube.com/watch?v=BML1YHZpx2o
1•binyu•10m ago•0 comments

Defining new Jax types with hijax

https://docs.jax.dev/en/latest/hijax_types.html
1•fhchl•14m ago•0 comments

The Trump administration Shakes Up Federal Grantmaking

https://thedispatch.com/article/office-of-management-and-budget-vought-grantmaking-rules/
1•paulpauper•15m ago•0 comments

What Made the Sopranos Great

https://www.richardhanania.com/p/what-made-the-sopranos-great
1•jger15•16m ago•0 comments

AI customers are coming around to the idea that small is beautiful

https://www.theregister.com/ai-and-ml/2026/07/11/ai-customers-are-coming-around-to-the-idea-that-...
1•Bender•16m ago•0 comments

Show HN: Async NFS client library for Rust, without an OS mount point

https://github.com/s2-streamstore/nfs-crust
1•shikhar•16m ago•0 comments

Theia, a fact-checker that flags sycophancy from ChatGPT/Claude/Gemini

https://gettheia.org/
1•plushywushy•16m ago•1 comments

A Beautiful Theory Falls to Ugly Data

https://marginalrevolution.com/marginalrevolution/2026/05/a-beautiful-theory-falls-to-ugly-data.html
1•paulpauper•17m ago•0 comments

Welcome to Space Jam

https://spacejamteam.substack.com/p/welcome-to-space-jam
2•paulpauper•18m ago•0 comments

Terrifying moment Grandpa is launched eight feet in the air by charging bison

https://www.dailymail.com/news/article-15971065/Grandpa-launched-eight-feet-air-bison-Yellowstone...
1•Bender•19m ago•0 comments

Aeroplane: Self-Hostable Railway

https://aeroplane.run/
1•bundie•19m ago•0 comments

You shouldn't have to show your address to buy a beer

https://www.malikpwarren.com/blog/selective-disclosure-beer
1•tomrod•19m ago•0 comments

Neocities: Create your own free website

https://neocities.org/
6•Tomte•19m ago•0 comments

Abnormal Response to Anthropic Lawsuit

https://abnormal.ai/blog/abnormal-response-to-anthropic-lawsuit
1•backlit4034•20m ago•0 comments

FBI is 'assisting' police after Lindsey Graham's death day after Ukraine trip

https://www.dailymail.com/news/article-15971771/Mystery-swirls-Lindsay-Graham-sudden-death-Ukrain...
5•Bender•20m ago•0 comments

Global Fishing Watch Map

https://globalfishingwatch.org/map/
2•willmeyers•22m ago•0 comments

Not your keys, not your songs: Last rites for Nina Protocol

https://components.news/not-your-keys-not-your-songs-nina-protocol/
1•CharlesW•23m ago•0 comments

AI's memory. On your machine, under your control

https://github.com/EXXETA/exxperts
1•alindnbrg•25m ago•1 comments

Cardspark_UI – React UI for TCG Builders

https://cardspark.dev
1•reb•29m ago•0 comments

Show HN: 2n – write directory based notes in the terminal

https://github.com/plannotator/2n
1•ramoz•31m ago•0 comments

AI Model Co-Design: Hardware-Friendly LLM Design

https://developer.nvidia.com/blog/ai-model-co-design-hardware-friendly-llm-design/
1•matt_d•33m ago•0 comments

FOIA The Dead: Sends an automated request to FBI if an obituary appears in NYT

https://foiathedead.org/
1•toomuchtodo•34m ago•1 comments