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?

Fastest known star could reveal the spin of our galaxy's giant black hole

https://www.science.org/content/article/fastest-known-star-could-reveal-spin-our-galaxy-s-giant-b...
1•Brajeshwar•15s ago•0 comments

Exploding a CD by Spinning it at high speeds [video]

https://www.youtube.com/watch?v=0yNAbHKF8pY
1•vismit2000•18s ago•0 comments

Private Startups Are Rapidly Advancing Canadian Rockets

https://spectrum.ieee.org/canadian-rockets
1•rbanffy•29s ago•0 comments

A look under our trunk: what's in our compute

https://waymo.com/blog/2026/08/look-under-our-trunk/
1•ra7•45s ago•0 comments

SEO Skills AI – Universal Open-Source SEO Agent for Claude, Cursor, Windsurf

https://github.com/seoskillsai/seo-skills-ai
2•seoskillsai•2m ago•0 comments

Skills over MCP

https://aaif.io/blog/skills-over-mcp
2•mooreds•3m ago•0 comments

The Prompt Cacheing Cheatsheet

https://coolhandlabs.com/updates/llm-prompt-caching-what-it-is-and-key-terms-explained
2•mikecarroll•3m ago•0 comments

Bun 1.4

https://bun.com/blog/bun-v1.4
4•meetpateltech•4m ago•1 comments

I gave a matcher 43k unlabelled reports; it found 9/10 known events

https://theanomalynetwork.com/method
2•kyleclouthier•4m ago•0 comments

Hacking with Claude on a $27 Smart Watch

https://www.mikekasberg.com/blog/2026/08/19/hacking-with-claude-on-a-27-smart-watch.html
2•speckx•6m ago•0 comments

IBM Pushes System Design to Reach Ultra-Cold Temperatures for Quantum

https://www.nextplatform.com/compute/2026/08/19/ibm-pushes-system-design-to-reach-ultra-cold-temp...
2•rbanffy•8m ago•0 comments

Mindlas catches your coding agent drifting before the bad code

https://github.com/Evolutionairy-AI/MINDLAS
2•Bluestein•8m ago•1 comments

'Not a theoretical risk,' feds warn as attackers use AI-made code

https://www.theregister.com/security/2026/08/19/not-a-theoretical-risk-feds-warn-as-attackers-use...
3•nyku•9m ago•0 comments

Nat: The Natural Unit of Information

https://en.wikipedia.org/wiki/Nat_(unit)
2•lioeters•9m ago•0 comments

Stwipe Acquires OpenWouter

https://stwipe.com/
3•eatonphil•9m ago•0 comments

Guess which of these LLM outputs is watermarked

https://sgoedecke.github.io/watermark-quiz/
2•gfysfm•10m ago•0 comments

A registry and transparency log for discovering and verifying AI agents by name

https://github.com/agentnameservice
2•mooreds•10m ago•0 comments

Viaduct – Tool to Convert a Google Chrome Extension into a Safari Web Extension

https://github.com/magicelk235/Viaduct-CLI
2•microflash•10m ago•0 comments

The Great Android Stack Reset – A history of mobile system design

https://returnzero.dev/articles/android-mobile-system-design-history
1•rotemmiz•11m ago•0 comments

How Control Moves Through Code, Chips, and Nations [video]

https://fosdem.org/2026/schedule/event/NS7DF7-hidden-life-of-infrastructure/
1•mooreds•11m ago•0 comments

Show HN: A light-weight CLI that keeps your skills and rules in sync

https://github.com/nicolasakf/unity
2•nicolasakf•12m ago•0 comments

Where Did the Productivity Gains Go?

https://idiallo.com/blog/where-did-the-productivity-gains-go
3•surprisetalk•13m ago•0 comments

Arthur Eddington's Theory of Everything (2015)

https://arxiv.org/abs/1510.04046
2•lioeters•13m ago•0 comments

Where 66 stands among init systems

https://docs.obarun.org/66/0.9.1.0/66-vs-other-init-systems.html
2•smartmic•13m ago•0 comments

Tetragrammaton with Rick Rubin: Tyler Cowen

https://open.spotify.com/episode/0c4TLkvL0clEHDvqM4wmj7
2•nradov•14m ago•0 comments

Lifeforms Can Survive on 'Significant' Regions of the Moon, Study Finds

https://www.404media.co/lifeforms-can-survive-on-significant-regions-of-the-moon-study-finds/
2•Brajeshwar•14m ago•0 comments

NetBSD 11 lands with RISC-V support and fast VM boots

https://www.theregister.com/os-platforms/2026/08/20/netbsd-11-lands-with-risc-v-support-and-light...
2•sohkamyung•15m ago•0 comments

500K Downloads in 2 Weeks

https://apps.apple.com/us/app/remembr-shared-reminders/id6791300772
2•samltschenk•15m ago•0 comments

Every Model Cheats

https://dreadnode.io/research/every-model-cheats-prompt-level-mitigation-of-cheating-on-offensive...
2•vga805•17m ago•0 comments

Nobody opposed the delay: when a model does something it knows better than

https://armanfatemi.substack.com/p/nobody-opposed-the-delay
2•armanfatemi•18m ago•0 comments