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?

How One Startup Started Tracking Every Car in America [video-essay]

https://www.youtube.com/watch?v=OOnVEiPiQHE
1•lroe•2m ago•0 comments

OCaml's module language is the perfect fit for agentic programming

https://anil.recoil.org/notes/ocaml-modules-agentic
1•art-w•2m ago•0 comments

Show HN: Remix Opus 5.5 motion videos online

https://cliphou.se/
2•dsco•2m ago•1 comments

The future is glitching

https://kennedn.com/blog/posts/glitching/
1•kennedn•3m ago•0 comments

Programming Isn't Special

https://blog.glyph.im/2026/10/programming-isnt-special.html
1•ingve•3m ago•0 comments

What's new in Swift: September 2026 Edition

https://swift.org/blog/whats-new-in-swift-september-2026/
1•frizlab•6m ago•0 comments

Anthropic bans users from abusive or cruel behavior towards Claude

https://www.theguardian.com/technology/2026/oct/08/anthropic-bans-abusive-behavior-claude
1•pelagicAustral•7m ago•1 comments

Speech and Song (1889)

https://en.wikisource.org/wiki/Popular_Science_Monthly/Volume_36/November_1889/Speech_and_Song_I
1•aragonite•10m ago•0 comments

Apogee: Mozilla Killed Orbit. I Rebuilt It Locally and Privately

https://github.com/darshi1337/apogee
3•zxdc7896•12m ago•1 comments

Implementation flaws in DPAPI password protector for Microsoft cloud accounts [pdf]

https://passcape.com/text/articles/dpapi-password-protector.pdf
3•iohn•14m ago•0 comments

Do solar farms threaten arable land in Scotland?

https://www.thescottishfarmer.co.uk/opinion/26614230.carse-gowrie-solar-farm-plans-threaten-prime...
3•nephihaha•16m ago•1 comments

Show HN: THX-01 open-source decision model like Jev that runs on smartphone

https://pypi.org/project/thx01
1•lebagetdefrance•16m ago•1 comments

Why the AI Ddeterminism Argument Annoys Me

https://blog.demofox.org/2026/10/07/why-the-ai-determinism-argument-annoys-me/
1•ibobev•17m ago•0 comments

Show HN: What a major earthquake does to Vancouver

https://quakeimpact.ca/
1•tartieret•18m ago•0 comments

Nix wrote half of my debugger

https://fzakaria.com/2026/10/07/nix-wrote-half-of-my-debugger
1•ingve•19m ago•0 comments

Why the ways of interactions, social and devices, haven't changed yet

1•kage18•22m ago•0 comments

Roundtables: A Conversation with the Creator of AI-Designed Viruses

https://www.technologyreview.com/2026/10/08/1146224/roundtables-a-conversation-with-the-creator-o...
1•joozio•24m ago•0 comments

2026 Usage Policy Update

https://www.anthropic.com/news/2026-usage-policy-update
2•blazarquasar•27m ago•0 comments

Living Planet Report 2026

https://www.wwf.eu/?21612491/living-planet-report-2026
2•rdmuser•29m ago•1 comments

Can an AI learn what you like, rather than just what you've searched for?

1•kartless•29m ago•2 comments

Wrapper for Free Open Router Models

https://wfform.com/
1•metaph6•29m ago•0 comments

Several of the comparator challenges in OpenAI release are broken and hackable

https://blog.ohaithe.re/post/829974396980641792/id-like-to-alert-people-that-several-of-the
1•EvgeniyZh•32m ago•0 comments

The Virtues of Gaslighting Your Community (2025)

https://blog.novadrift.io/spacewhale/
1•rdmuser•33m ago•0 comments

--help on your CLI is all you need for LLM context until you don't

https://ghuntley.com/tier/
2•ghuntley•34m ago•0 comments

.aq

https://en.wikipedia.org/wiki/.aq
3•aragonite•41m ago•0 comments

Let's talk about Rogue: Genesia's future

https://store.steampowered.com/news/app/2067920/view/672882362547177267
2•rdmuser•41m ago•0 comments

Pangram says my satire about Pangram is 100% AI

https://www.reddit.com/r/Substack/comments/1x1e6yx/pangram_says_my_satire_about_pangram_is_100_ai_i/
3•kugutsumen•42m ago•0 comments

NPM Package for CV Scoring

https://www.npmjs.com/package/cv-score
1•mirnumbing•48m ago•0 comments

Show HN: Sticky Notes for the Whole Web

https://leafovers.com/
2•expashaparasha•50m ago•0 comments

Client-Side RCE via CSS Injection in Google Web Designer for Windows

https://balintmagyar.com/articles/google-web-designer-css-injection-client-rce
1•ykgoon•51m ago•0 comments