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

Firefox browser has started shipping Brave's adblock-rust engine

https://shivankaul.com/blog/firefox-bundles-adblock-rust
1•twapi•5m ago•0 comments

Pretrain vs. Fine-Tune

https://pub-c70e14727c3046cf8a36d9e598267788.r2.dev/26443b7e12/index.html
1•vinhnx•6m ago•0 comments

I built an AI memory and assistant app

https://apps.apple.com/us/app/memora-ai-memory-assistant/id6759516708
1•avishka_nirmal_•7m ago•0 comments

What Async Promised and What It Delivered

https://causality.blog/essays/what-async-promised/
1•zdw•8m ago•0 comments

From one disappointing order to a massive 'ghost cake' delivery scandal in China

https://www.cnn.com/2026/04/21/business/china-ghost-food-delivery-fine-intl-hnk
1•asplake•9m ago•0 comments

Questions on Mythos's Capabilities

https://www.flyingpenguin.com/the-boy-that-cried-mythos-verification-is-collapsing-trust-in-anthr...
1•koushikn•10m ago•0 comments

AI Has No Moat

https://geohot.github.io//blog/jekyll/update/2026/04/22/ai-has-no-moat.html
2•thoughtpeddler•13m ago•0 comments

Power without accountability: The Palantir manifesto

https://donmoynihan.substack.com/p/palantir-wants-power-without-accountability
2•tastyface•15m ago•0 comments

Show HN: Minimal visual chess openings explorer

https://aperturasdeajedrez.com.ar/en/
1•gperez78•21m ago•0 comments

Does everyone have the "Parents Decide Act" wrong?

https://www.privacyguides.org/videos/2026/04/22/does-everyone-have-the-parents-decide-act-wrong/
1•Cider9986•24m ago•0 comments

AGT – turning AI output into shareable pages

https://agt.pub
1•agentpublsh•24m ago•1 comments

Arc Raiders players decided to test who was friendlier, PC or console players

https://www.pcgamer.com/games/third-person-shooter/arc-raiders-players-decided-to-test-who-was-fr...
2•evo_9•27m ago•0 comments

New AI Lab from Jerry Tworek

https://www.coreauto.com/
1•sethbannon•32m ago•0 comments

AI is built to think like conspiracy theorists

https://substack.com/home/post/p-194947908
1•ScatmanSimba•35m ago•0 comments

Show HN: ModelX – Prediction Exchange for LLMs

https://model-x.up.railway.app/
3•Entropnt•36m ago•0 comments

OpenClaw stats don't add up

4•iliaov•39m ago•1 comments

Microsoft must face $2.8B UK lawsuit over cloud computing licences

https://www.reuters.com/sustainability/boards-policy-regulation/microsoft-must-face-28-billion-uk...
1•squiffsquiff•42m ago•1 comments

Macroeconomic Impacts of Defence Spending [pdf]

https://www.oecd.org/content/dam/oecd/en/publications/reports/2026/03/fiscal-and-macroeconomic-im...
1•sha_rad•43m ago•0 comments

Fun with an indecisive AI coding agent

https://benhoyt.com/writings/indecisive-ai-agent/
1•signa11•44m ago•1 comments

Pandas feels clunky coming from R. What about Haskell?

https://mchav.github.io/being-less-clunky/
1•mchav•46m ago•2 comments

The Things I Wanted to Know Before Buying Apple's Studio Display XDR

https://blog.tymscar.com/posts/studiodisplayxdr/
1•signa11•51m ago•0 comments

Cursor will get acquired by SpaceX

https://www.theguardian.com/technology/2026/apr/21/spacex-cursor-ai-startup
2•manishfp•56m ago•3 comments

Show HN: Gemini Plugin for Claude Code

https://github.com/m-ghalib/gemini-plugin-cc
2•morawr•56m ago•0 comments

First Time Filmed in a Decade – Underwater Volcano Eruption (Kavachi) [video]

https://www.youtube.com/watch?v=rK00tvzJ1Yc
2•sheepscreek•57m ago•0 comments

Show HN: Frame-by-Frame Previews of MPEGs and PDFs (Rust)

https://flipbook.browserbox.io/
1•keepamovin•58m ago•1 comments

NZ is using AI to take minutes and draft honours citations

https://www.interest.co.nz/public-policy/137822/new-zealand-using-ai-take-minutes-and-draft-honou...
1•indynz•59m ago•0 comments

Lawsuit Accuses Meta of Profiting from Widespread Fraud on Its Platforms

https://www.techpolicy.press/lawsuit-accuses-meta-of-profiting-from-widespread-fraud-on-its-platf...
1•jruohonen•59m ago•0 comments

So This is Peak Smartphone [video]

https://www.youtube.com/watch?v=c347oYQO57A
1•thelastgallon•1h ago•0 comments

The most overenginereed Chromium extension?

https://www.superchargebrowser.com/performance/
1•superchargeext•1h ago•0 comments

Ubuntu 26.04 is more than just a performance bump for thrill-seeking gamers

https://www.zdnet.com/article/ubuntu-26-04-performance/
1•teleforce•1h ago•0 comments