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?

China unveils high-power microwave weapon arsenal with up to 100 gigawatts

https://www.scmp.com/news/china/science/article/3360000/100-gigawatts-china-unveils-its-high-powe...
1•msalsas•1m ago•0 comments

ESDM Is Now Open Source

https://docs.eventsourcingdb.io/blog/2026/07/13/esdm-is-now-open-source/
2•goloroden•4m ago•0 comments

T. rex fossil could become most expensive dinosaur ever sold

https://www.bbc.co.uk/news/articles/c4gykgyn1r4o
2•beardyw•5m ago•0 comments

24-zig

https://en.wikipedia.org/wiki/24-zig
1•Lammy•7m ago•0 comments

Show HN: PalExplorer – peer-to-peer file sharing with no central server

https://palexplorer.com
2•hannan2•8m ago•0 comments

The Caste of Intelligence and the Big Tech Blueprint

https://calcrecipe.com/en/workshop/5
1•wsdn•9m ago•0 comments

Agent Service – promptable AI agents with guardrails and downloadable packages

https://buy.stripe.com/5kQ5kEaUKd8w0qr0FKe3e00
1•mknight2690•13m ago•0 comments

Using Kamal 2.0 in Production

https://rubys.github.io/kamal-in-production/
3•enz•19m ago•0 comments

AI Should Build Its Own Research World Model

https://www.evolvinglab.ai/blog/research-world-model
1•vinhnx•19m ago•0 comments

Cruxcoach – Manage many climbing boards privatly in one app

https://cruxcoach.org/
1•frankzander•22m ago•0 comments

What I learned publishing a paper

https://ramjanarthan.com/what-i-learned-publishing-a-paper/
1•shadowblue•29m ago•0 comments

Best Hiking Boots (2026): Walking Shoes, Trails, Backpacking

https://www.wired.com/gallery/best-hiking-boots/
1•joozio•29m ago•0 comments

6× faster binary search: from compiled code to mechanical sympathy

https://pythonspeed.com/articles/branchless-binary-search/
2•enz•31m ago•0 comments

The secret operation to move the Bayeux Tapestry

https://www.nationalgeographic.com/history/article/bayeux-tapestry-return-england-british-museum
1•Tomte•34m ago•0 comments

Sen. Lindsey Graham dead at 71 after 'brief and sudden' illness, office says

https://www.dw.com/en/us-senator-lindsey-graham-dies/a-77921386
5•rock57•35m ago•2 comments

Parse inbound email to JSON in Node.js – MailKite

https://mailkite.dev/blog/parse-inbound-email-to-json-node/
4•aisendhub•36m ago•0 comments

To Build More Believable Bots, Simulate the Neurochemistry

https://github.com/smithandrewjohn/kindalive
2•beardyw•37m ago•2 comments

Ancient feeding-related neuropeptides regulate alloparenting in ants

https://www.nature.com/articles/s41586-026-10747-6
2•XzetaU8•45m ago•0 comments

How Aldi is taking on US supermarkets with its $4 almond butter

https://www.bbc.com/news/articles/cly0l5d5xn7o
2•reqo•47m ago•1 comments

Sen. Lindsey Graham dies at 71 from a 'sudden illness'

https://www.nbcnews.com/video/sen-lindsey-graham-dies-at-81-266555461760
3•josefrichter•47m ago•0 comments

Show HN: Bgchanger.video – change video backgrounds online

https://bgchanger.video/
1•andytuyu•49m ago•0 comments

Ask HN: Can anyone explain this Gsearch rabbit-hole?

1•Baljhin•49m ago•0 comments

The Ten Commandments of AI Usage

https://defragzone.substack.com/p/the-ten-commandments-of-ai-usage
1•frag•52m ago•0 comments

AI song going to be viral in 2026

https://open.spotify.com/track/50mUiidUauqseqtm2Kr7U6
2•puildupO•1h ago•0 comments

LLMlet: P2P distributed LLM inference on browsers

https://github.com/ktock/llmlet
1•mrauha•1h ago•0 comments

Theoretical Limit of Image Compression [video]

https://www.youtube.com/watch?v=W39hBPOk9Hk
2•eln1•1h ago•0 comments

MSK – an AI agent that thinks like a CTO

https://apps.apple.com/us/app/msk-ai-cto-agent/id6778822216
1•moeidsaleem•1h ago•0 comments

Eternal Dogfooders: How is the child of Aha turns furry

https://rwhu.helluvaos.com/posts/what-to-eat-as-a-dog-inside-google
1•shscs911•1h ago•1 comments

Inside the secret AI war between Silicon Valley and China

https://www.washingtonpost.com/national-security/2026/07/06/why-anthropic-alleges-chinese-firms-a...
1•breve•1h ago•1 comments

Tell HN: Fable guardrails trigger on random questions

2•nocoder•1h ago•0 comments