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

Emacs with a native Metal rendering back end (macOS)

https://github.com/tanrax/emacs-gpu
1•andros•1m ago•0 comments

D4M

https://d4m.mit.edu/
1•tosh•2m ago•0 comments

GNU/Linux Usage Rising Among Gamers, but "Hardware Survey Data Not Available."

https://techrights.org/n/2026/06/03/GNU_Linux_Usage_Rising_Among_Gamers_But_Hardware_Survey_Data_...
1•amcclure•2m ago•0 comments

WebGPU simulation of a magnetic table clamp

https://jasmcole.com/2026/05/30/clamperes-law
1•jasmcole•4m ago•0 comments

New York's 3D printer law is NOT gun control; it's manufacturing control [video]

https://www.youtube.com/watch?v=ma12AyQHzYs
1•dataflow•4m ago•0 comments

Signal Without Smartphone

https://github.com/almet/signal-without-smartphone
1•p4bl0•6m ago•0 comments

Pay Attention

https://www.theatlantic.com/ideas/2026/05/nyu-jonathan-haidt-commencement-speech/687168/
1•juliangoetze•8m ago•0 comments

TypeScript Infers Type Variables

https://norswap.com/typescript-type-variable-inference/
1•norswap•8m ago•0 comments

Thanks to robots, Ukraine is now talking about winning, not just surviving

https://www.defenseone.com/technology/2026/06/ukraine-robots-winning/413902/
1•vrganj•9m ago•0 comments

The Winamp Skin Museum whips the Llama's ass (2020)

https://www.rockpapershotgun.com/the-winamp-skin-museum-really-whips-the-llamas-ass
1•Michelangelo11•11m ago•0 comments

Gemma 4 12B: The Developer Guide

https://developers.googleblog.com/gemma-4-12b-the-developer-guide/
2•theanonymousone•13m ago•0 comments

Ask HN: Best Claude Code thinking word you've seen?

2•akashwadhwani35•13m ago•0 comments

Norm – lightweight PostgreSQL SQL helper for Go structs

https://github.com/juggle73/norm
1•juggle73•15m ago•0 comments

Flesh-eating screwworm confirmed in Texas as parasite crosses Mexican border

https://www.reuters.com/business/healthcare-pharmaceuticals/unconfirmed-us-case-flesh-eating-scre...
1•justacrow•17m ago•0 comments

MultiSlack – I achieved perfect context-switching by removing the switch

https://multislack.net/
1•pro_methe5•21m ago•0 comments

The National Film Board of Canada

https://www.nfb.ca/
1•dtj1123•23m ago•0 comments

SlimTide Deep Story Behind the Viral Gut-Health Trend

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-shocking-report-2026-1724...
1•ragubaki•23m ago•0 comments

All GitHub Copilot plans are now on usage-based billing

https://github.com/orgs/community/discussions/197089
2•tjek•23m ago•0 comments

WoofWare.PawPrint, a Deterministic .NET Runtime

https://www.patrickstevens.co.uk/posts/2026-06-04-announcing-woofware-pawprint/
1•Smaug123•24m ago•1 comments

I created an open-src, PC gaming accesibility select to speak screen reader tool

2•DarkLightCodes•24m ago•1 comments

Where AI agents pay off

https://rico.codes/agents
1•ricokahler•25m ago•0 comments

Chinese Police Enter Woman's Home and Arrest Her for Internet Posts (2019) [video]

https://www.youtube.com/watch?v=cCOAbkTs_a4
1•Cider9986•25m ago•0 comments

OAuth Applications on Cloudflare

https://developers.cloudflare.com/fundamentals/oauth/
1•tjek•26m ago•0 comments

Gate – deterministic PII redaction for AI agent tool output (Rust)

https://github.com/GaaraZhu/gate
1•gzhuuu•28m ago•0 comments

Show HN: Mini-film, processor of RAW files with XMP profiles – Linux and Rust

https://github.com/alfanick/mini-film/tree/main
1•alfanick•30m ago•0 comments

Are Current Authors Using A.I.? At Least They're Not Plagiarizing

https://dysfunctionalliteracy.com/2026/05/31/are-current-authors-using-a-i-pffft-at-least-theyre-...
1•helloplanets•32m ago•0 comments

Hybrid legal agents can beat frontier models on quality and cost

https://twitter.com/harvey/status/2062218656420167785
1•arnon•32m ago•0 comments

Declarative DSLs for Janet

https://codeberg.org/veqq/declarative-dsls
1•tosh•32m ago•0 comments

Europe turns to Open Source for independence

https://dri.es/europe-turns-to-open-source-for-independence
2•nicola•34m ago•0 comments

Storing Your Passwords Safely: Why I Use KeePass

https://menelaos.vergis.net/posts/Storing-Your-Passwords-Safely-Why-I-Use-KeePass
3•melenaos•35m ago•0 comments