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•8mo 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•8mo 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?

Gut Microbes Played Role in Evolution of Human Brain, New Study Suggests

https://www.sci.news/biology/gut-microbes-human-brain-evolution-14461.html
1•gmays•57s ago•0 comments

Reusable "skills" for coding agents: how to design them so they do not drift

https://clipnotebook.com/blog/reusable-skills-for-coding-agents
3•amandapoDEV•2m ago•1 comments

How to Fool a Neural Network

https://briefer.cloud/blog/posts/fooling-neural-networks/
1•rafaepta•3m ago•0 comments

AG Pax­ton Secures Win Stop­ping Sam­sung from Using Smart TVs to Spy on Texans

https://www.texasattorneygeneral.gov/news/releases/attorney-general-ken-paxton-secures-major-win-...
1•voxadam•3m ago•0 comments

Decoding the Astonishing Secret Languages of Animals

https://atmos.earth/science-and-nature/decoding-the-astonishing-secret-languages-of-animals/
1•bikeshaving•3m ago•0 comments

Detecting "AI Slop" with Shannon Entropy (Python)

https://steerlabs.substack.com/p/detecting-ai-slop-with-shannon-entropy
2•steer_dev•3m ago•1 comments

OpenAPI Isn't Enough

https://alexstephen.me/writing/openapi-isnt-enough/
1•rambleraptor•4m ago•0 comments

GLM-4.7: Advancing the Coding Capability

https://z.ai/blog/glm-4.7?_hsenc=p2ANqtz-_A0g1a_qMPKlnITH_2MrETt56Egtpn06pe9CyarPb7l_DhltBP9TmtFS...
1•rbanffy•5m ago•0 comments

The work of sleep doesn't depend on time

https://blog.affectablesleep.com/p/the-hidden-work-of-sleep-doesnt-depend
1•pedalpete•6m ago•0 comments

Show HN: Semi-private chat with Gemini from your computer

https://github.com/deepanwadhwa/semi_private_chat
1•dwa3592•7m ago•0 comments

Show HN: Ralph2Ralph

https://github.com/eqtylab/real-a2a
2•ramoz•8m ago•0 comments

Richard D. James interviews ex Korg engineer Tatsuya Takahashi (2017)

https://web.archive.org/web/20180719052026/http://item.warp.net/interview/aphex-twin-speaks-to-ta...
1•lelandfe•9m ago•4 comments

Our take on the best Firefox-based browsers for top privacy and customization

https://alternativeto.net/news/2026/1/our-honest-take-on-the-best-firefox-based-web-browsers-for-...
1•elliot_a•10m ago•0 comments

Some super-smart dogs can pick up new words just by eavesdropping

https://www.cnn.com/2026/01/08/science/gifted-dogs-learn-words-overhearing-intl-scli
1•breve•11m ago•0 comments

It's the little things that change your life, really: combining ChatGPT+DocuSign

https://app.yanna.pro/welcome/1
1•abemazak•11m ago•0 comments

Docker Releases Hardened Images for Free – What Does It Do Differently?

https://www.i-programmer.info/news/240-devops/18579-docker-releases-hardened-images-for-free-what...
1•aquastorm•12m ago•1 comments

Mathematics for Computer Science (2018) [pdf]

https://courses.csail.mit.edu/6.042/spring18/mcs.pdf
1•nateb2022•12m ago•0 comments

How Terminals Work

https://how-terminals-work.vercel.app/
1•gnodar•12m ago•0 comments

App for Prayer Reminders

https://prayminder.com/
1•marysminefnuf•14m ago•0 comments

Show HN: NPM CLI tool for SEO analysis with AI-powered competitor insights

https://github.com/BrunoQuaresma/seoq
1•bquaresma•15m ago•0 comments

On Cloudflare

https://indiscretemusings.substack.com/p/on-cloudflare
1•madars•15m ago•0 comments

Being a Scrapy Engineer

https://patys.dev/being-a-sc/
1•patys•16m ago•0 comments

Show HN: Infinite AI Generated Logos

https://durable.co/ai-logo-generator
1•rookhack•17m ago•1 comments

Richard D. James interviews ex. Korg engineer Tatsuya Takahashi (2020)

https://warp.net/editorial/richard-d-james-speaks-to-tatsuya-takahashi
1•lelandfe•19m ago•0 comments

Researchers seek better, safer alternatives to current opioid drugs

https://medicalxpress.com/news/2025-12-safer-alternatives-current-opioid-drugs.html
1•PaulHoule•19m ago•0 comments

Show HN: Minimalist LLM Grammar Checker for macOS

https://github.com/harentius/GrammifyAI
1•harentius1•22m ago•0 comments

Templates still matter in an AI-first workflow

https://dsmurrell.com/articles/templates-ai
1•dsmurrell•22m ago•1 comments

What Happened to WebAssembly

https://emnudge.dev/blog/what-happened-to-webassembly/
1•birdculture•23m ago•0 comments

SQL Studio

https://sql.studio/
1•handfuloflight•24m ago•0 comments

Tsubame Industries- Archax (a giant robot that can be boarded)

https://tsubame-hi.com/en/products/archax/
1•YeGoblynQueenne•25m ago•0 comments