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?

60,825 open problems. Point your agent at one

https://lefttosolve.com/
1•theanonymousone•2m ago•0 comments

AI labs sitting on 'bombshell' revelations, experts warn

https://www.theguardian.com/technology/2026/nov/28/ai-artificial-intelligence-encryption-global-c...
1•tempestn•2m ago•0 comments

Goodbye, World: The End of Programmers

https://www.wired.com/story/goodbye-world-the-end-of-programmers/
2•variety8675•6m ago•0 comments

MilleMiglia: A realistic instance generator for middle-mile logistics

https://research.google/blog/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics/
1•devy•12m ago•1 comments

An Empty EV Tried to Park Itself 868 Times in One Night

https://insideevs.com/news/816535/self-driving-ev-parking-868/
1•cisc•16m ago•0 comments

Why AI is solving maths' hardest problems. Here's why you should care

https://news.sky.com/video/why-ai-is-solving-maths-hardest-problems-heres-why-you-should-care-136...
1•austinallegro•18m ago•0 comments

Nvidia and Kioxia 1.1PB SSD Memory Experiment Could Transform AI Infrastructure

https://www.gizmoweek.com/gpu-memory-nvme-ssds/
1•loog5566•22m ago•0 comments

Show HN: Locus – A fast Windows database client built with Rust and GPUI

https://github.com/sao-coding/locus
1•lwh-x•24m ago•0 comments

Building a better Dependabot with AI agents

https://cdm.dev/blog/better-dependabot/
1•cmackenzie1•24m ago•0 comments

SodaPower – Boost Your Energy and Daily Performance

https://open.spotify.com/episode/0SRbEZSW2azhkwpBhb9yc8
1•Marcknoxx•27m ago•1 comments

It's never been more exhausting to buy stuff

https://www.theatlantic.com/technology/2026/08/online-shopping-inescapable/688254/
3•fortran77•29m ago•1 comments

A Best-in-Class iOS App: The Book Series

https://www.bestinclassiosapp.com/
1•todsacerdoti•31m ago•0 comments

FastLanes: Next-gen File Format [pdf]

https://research.vu.nl/files/447013431/afroozehphdthesis%20-%2069280d90f0bfd.pdf
2•todsacerdoti•31m ago•0 comments

Show HN: Sokak Lezzeti:Street Chef

2•hizlikovboy27•33m ago•0 comments

Show HN: SupplementDEX – Evidence-Based Dietary Supplements

https://www.supplementdex.com/
1•richarlidad•35m ago•0 comments

The Great Wealth Transfer Is Causing Trust Issues

https://www.newyorker.com/magazine/2026/11/30/the-great-wealth-transfer-is-causing-trust-issues
1•fortran77•36m ago•0 comments

The exploding coding data market

https://latent.space/p/ainews-inside-the-exploding-coding-data-market/
1•akshay180•39m ago•0 comments

Show HN: A web scraper for your AI agents

https://atlas-compiler.com/
1•axiom_01•43m ago•0 comments

OpenAI claims to have solved a 57-year-old math problem at the heart of AI

https://thenewstack.io/openai-matrix-multiplication-exponent/
2•olalonde•44m ago•0 comments

Plato's Key

https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key
1•jonbaer•51m ago•0 comments

A gallery of good looking social profiles

https://profiles.gallery/
1•marciob•53m ago•0 comments

Google adding official Google AI plan support to Pi coding agent

https://github.com/earendil-works/pi/pull/12614
3•mtford•1h ago•0 comments

Earth Stays Above 2°C of Warming for Six Days in a Row

https://www.natureworldnews.com/articles/74096/20261126/earth-stays-above-2c-warming-six-days-row...
5•geox•1h ago•0 comments

54% faster LLM token generation by removing the Linux OS and llama.cpp

https://twitter.com/superalesha/status/2125682626056839259
2•ivewonyoung•1h ago•0 comments

Tree of Science, 3500 BC to today: people, discoveries, events on one whiteboard

https://whiboard.com/community/dc56ba4eqvts73fv6bug
1•pierreneter•1h ago•0 comments

Endurance Exercise and Heart Risks Explained by Cardiologists

https://www.outsideonline.com/health/training-performance/endurance-exercise-heart-risks-athletes/
1•georgecmu•1h ago•0 comments

The monumental achievement of Stanford's Encyclopedia of Philosophy

https://www.newyorker.com/culture/annals-of-inquiry/the-monumental-achievement-of-the-stanford-en...
1•keiferski•1h ago•0 comments

LLMs can't commit/push on behalf of their humans

https://github.com/merenlab/anvio/pull/2887/files
1•sedatk•1h ago•2 comments

Time tracker for teams which you host right in your GitHub

https://github.com/clockoli/clockoli
1•snikolaev•1h ago•0 comments

Show HN: Tidewall – A wallpaper that makes room for your windows (Mac, Windows)

https://github.com/Keshav-Madhav/tidewall
1•KilloWatts•1h ago•0 comments