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?

Is Life Just Different?

https://www.quantamagazine.org/is-life-just-different-20260708/
1•ibobev•1m ago•0 comments

The Battle of Blair Mountain

https://home.nps.gov/articles/000/the-battle-of-blair-mountain.htm
1•thunderbong•1m ago•0 comments

Grok Build CLI uploads full Git history and .env secret to xAI's cloud

https://old.reddit.com/r/LocalLLaMA/comments/1ut7tis/grok_build_cli_uploads_your_whole_repo_full_...
1•zdw•1m ago•0 comments

Will We Ever Find Alien Civilizations?

https://www.quantamagazine.org/will-we-ever-find-alien-civilizations-20260709/
2•ibobev•1m ago•0 comments

Mailbox.org Price Increase

https://mailbox.org/en/news/plan-adjustment-2026/
2•tomgag•2m ago•1 comments

Okhst: A tone-based color space for predictable UI palettes

https://tenphi.me/blog/okhst-predictable-color-generation/
1•tenphi•3m ago•0 comments

Talk: The Art of Braiding Algorithms

https://pgadey.ca/notes/talk-relatorium-2026/
1•surprisetalk•3m ago•0 comments

Show HN: Running server scripts from smartphone via SSH

https://c100k.eu/p/rebootx/updates/20260714-remote-runbooks
2•pmdfgy•5m ago•0 comments

Show HN: Agent's Design – Claude/Codex copy-paste templates that kill AI-slop UI

https://agents-design.com
2•tungtbt•5m ago•0 comments

AI Europe 100 · 2026

https://headline.com/blog-latest/article-latest/ai-europe-100-2026
2•shadag•6m ago•0 comments

CISA warns admins to patch actively exploited SharePoint flaws

https://www.bleepingcomputer.com/news/security/cisa-warns-admins-to-patch-actively-exploited-shar...
2•Brajeshwar•6m ago•0 comments

Elon Musk Could Still Face Criminal Charges for Trying to Bribe Voters in WI

https://gizmodo.com/elon-musk-could-still-face-criminal-charges-for-trying-to-bribe-voters-in-wis...
4•rbanffy•7m ago•0 comments

Job queues are deceptively tricky

https://typesanitizer.com/blog/job-queues.html
2•birdculture•7m ago•0 comments

The Purge: How the White House Broke the NSC and How to Fix It – Lawfare

https://www.lawfaremedia.org/article/how-the-white-house-broke-the-nsc-and-how-to-fix-it
2•MaysonL•8m ago•0 comments

Show HN: Grepathy – Claude made a decision nobody approved

https://github.com/evansjp/grepathy
3•evansjp•9m ago•0 comments

Notes on the Fourier Transform

https://eli.thegreenplace.net/2026/notes-on-the-fourier-transform/
2•ibobev•10m ago•0 comments

Opportunity cost neglect (2009) [pdf]

https://bear.warrington.ufl.edu/brenner/mar7588/Papers/frederick-jcr-2009.pdf
2•mustaphah•10m ago•0 comments

We compiled our TypeScript parser to WASM

https://encore.dev/blog/typescript-parser-wasm
3•eandre•11m ago•0 comments

Show HN: Nable – Local-first cost intelligence tool for cloud and AI

https://github.com/getnable/finopsmcp
3•chaandannn•12m ago•0 comments

AI and the New Mechanical Turk

https://www.ft.com/content/acd0ef98-b462-4800-88b9-2c78c54f2559
3•1vuio0pswjnm7•12m ago•0 comments

Im building PixelKit: A Linux alternative for Microsoft Powertoys

https://github.com/Kuucheen/PixelKit
2•kuchen•13m ago•0 comments

How Technical Should an Engineering Manager Be?

https://newsletter.eng-leadership.com/p/how-technical-should-an-engineering-258
3•rbanffy•13m ago•0 comments

Mysteries of Telegram Data Centers

https://dev.moe/en/3025
4•theanonymousone•13m ago•0 comments

How We Made Atomic's VPAT a Build Artifact

https://www.coveo.com/blog/atomics-vpat-build-artifact/
2•ylakhdar•14m ago•0 comments

Mosaic Bridge, Unity Editor MCP with 90 research-paper algorithms

https://github.com/MosaicXR-AI/mosaic-bridge
2•soutari•15m ago•0 comments

Privacy Incidents – Real-world examples of why your photos need protection

https://snapsafe.org/incidents.html
4•Cider9986•16m ago•0 comments

Anthropic, Blackstone bet the next trillion-dollar AI business is implementation

https://techcrunch.com/2026/07/15/anthropic-blackstone-bet-the-next-trillion-dollar-ai-business-i...
3•jack1689•16m ago•0 comments

The Three-Second Theft: Why AI Voice Fraud Outruns Every Defence

https://smarterarticles.co.uk/the-three-second-theft-why-ai-voice-fraud-outruns-every-defence
5•dxs•17m ago•0 comments

Charles Atlas and the AI Bullies

https://cuencahighlife.com/charles-atlas-and-the-ai-bullies/
2•dxs•17m ago•0 comments

Verse: Build and hire autonomous AI employees from a single prompt

https://www.useverse.ai
2•realthomasgu•17m ago•0 comments