frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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?

AI Graduation Speech

https://www.smbc-comics.com/comic/speech
1•limbicsystem•24s ago•0 comments

A Fleet of Ghost Ships Is Hiding in Plain Sight on the Potomac River

https://www.popularmechanics.com/science/archaeology/a71445180/ghost-ships-in-potomac/
1•bookofjoe•3m ago•1 comments

Maybe All You Need Is the Friends You Made Along the Way

https://oooooooo.my/ayn.html
2•hpwfranks•4m ago•0 comments

Grok Build 0.1 on API

https://x.ai/news/grok-build-0-1
1•alefalfa•5m ago•0 comments

Ask HN: Is Azure capacity this constraind or am I doing it wrong?

1•lanycrost•5m ago•0 comments

Show HN: OnePad: Stop losing your work in a sea of browser tabs

https://onepad.io
1•bsaylan•11m ago•0 comments

Anthropic Calls for Al Pause Button to Let Humans Take Stock

https://www.bloomberg.com/news/articles/2026-06-05/anthropic-calls-for-ai-pause-button-to-let-hum...
1•leonnatus•11m ago•0 comments

Anthropic calls for global freeze in AI development

https://www.telegraph.co.uk/business/2026/06/04/worlds-most-valuable-ai-start-up-calls-for-global...
1•truegoric•18m ago•2 comments

Arithmetic Without Numbers – How LLMs Do Math

https://alvaro-videla.com/llm-arithmetic-internals/article_interactive/article.html
2•old_sound•20m ago•1 comments

Short videos may hinder learning by fragmenting attention and memory, study

https://phys.org/news/2026-06-short-videos-hinder-fragmenting-attention.html
1•pseudolus•23m ago•0 comments

The Most Predictable Edit in History

https://medium.com/@jakeorlowitz/the-most-predictable-edit-in-history-967956076b11
1•JohnHammersley•23m ago•0 comments

Protecting against HTTP/2 Bomb vulnerability (CVE-2026-49975) with HAProxy

https://www.haproxy.com/blog/haproxy-cve-2026-49975-http2-bomb
3•owenthejumper•25m ago•0 comments

Ultra fast cross-platform multiple screenshots module in pure Python

https://python-mss.readthedocs.io/stable/index.html
1•ankitg12•28m ago•0 comments

Show HN: Gaussographs – Gaussian Splat Photography

https://bayardrandel.com/gaussographs/
1•squidsoup•29m ago•0 comments

Doctors file complaint against Philip Morris over 'misleading AI tool'

https://www.dutchnews.nl/2026/06/doctors-slam-misleading-philip-morris-tobacco-campaign/
1•molf•29m ago•0 comments

Introduction to Using Control Strings

https://apps.microsoft.com/detail/9p129dd8kdmw?hl=en-US&gl=US
1•GateLink•29m ago•1 comments

Reinforcement Learning and Optimal Control Book (RIP Dimitri Bertsekas)

https://web.mit.edu/dimitrib/www/RLbook.html
2•sebzuddas•34m ago•0 comments

Chrome, Opera and Vivaldi pen open letter to Microsoft saying "enough is enough"

https://www.neowin.net/news/browser-vendors-pen-open-letter-to-microsoft-saying-enough-is-enough/
3•bundie•35m ago•0 comments

Mac OLM to PST Outlook Converter Software

https://www.perfectdatasolutions.com/en/olm/olm-to-pst-converter.html
1•tieanderson•36m ago•0 comments

Oracle files foreign-worker requests amid layoff bloodbath

https://nypost.com/2026/04/02/us-news/outrage-over-oracles-thousands-of-h-1b-requests-amid-layoffs/
2•robtherobber•39m ago•0 comments

A disease of deforestation: how Ebola is linked to the smartphone in your pocket

https://www.theguardian.com/world/2026/jun/05/ebola-mineral-mining-smartphones-congo
2•kuerbel•39m ago•0 comments

Offres D'emploi EN RDC – Disponibles Sur Kivuhub Emplois (Kivuhub.net) June 2026

1•kivuhub•49m ago•0 comments

A peek at POSIX sh's future goodies

https://world-playground-deceit.net/blog/2026/06/a-peek-at-posix-sh-s-future-goodies.html
1•BoingBoomTschak•51m ago•0 comments

Mantyx – Free Agent Runtime with batteries included

https://mantyx.io/
1•mantyx•57m ago•0 comments

Automated Oracle to PostgreSQL Migration in Seconds

https://www.spectralcore.com/blog/why-we-built-sql-tran-oracle-to-postgresql-migration
2•spectral_beel•59m ago•0 comments

RNG: Flat Datacenter Networks at Scale

https://arxiv.org/abs/2604.15261
1•rayhaanj•59m ago•0 comments

Envato forced my hand. Now selling direct and rethinking marketplace trust

https://www.indiehackers.com/post/envato-s-july-policy-change-forced-my-hand-now-i-m-selling-dire...
1•veno_es•1h ago•0 comments

Kill Sticky Headers (2013)

https://alisdair.mcdiarmid.org/kill-sticky-headers/
3•downbad_•1h ago•0 comments

OpenAI says it will comply with Trump's order requiring AI model reviews

https://www.cnbc.com/2026/06/05/openai-trump-ai-model-review-order.html
2•thm•1h ago•0 comments

Preprint warns of catastrophic AI risks if no action is taken within five years

https://news.uq.edu.au/2026-06-global-experts-assess-risk-ai-catastrophes
3•giuliomagnifico•1h ago•1 comments