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

Broadcasting GPS on the Local Network

https://evertpot.com/broadcasting-gps-on-local-network/
1•treve•1m ago•0 comments

Brutal in production, lands like a verdict

1•Non_Von_Neumann•2m ago•0 comments

ReactOS Introduces Unified Live/Install Media, New Storage Driver

https://www.phoronix.com/news/ReactOS-Unified-ISO
1•kykat•3m ago•0 comments

Introduction to Atom

https://validator.w3.org/feed/docs/atom.html
1•susam•4m ago•0 comments

The Google Cloud Knowledge Catalog

https://cloud.google.com/blog/products/data-analytics/introducing-the-google-cloud-knowledge-catalog
1•laxmena•5m ago•0 comments

Next-Token Predictor Is An AI's Job, Not Its Species

https://www.astralcodexten.com/p/next-token-predictor-is-an-ais-job
1•optimalsolver•5m ago•0 comments

Seriously, Anthropic? [video]

https://www.youtube.com/watch?v=J8O9LLpJNrg
4•dp-hackernews•11m ago•0 comments

Sato – AI desktop companion for macOS with multi-provider support

https://www.sato.host/
1•vitalune•14m ago•0 comments

The Long Road To Windows 95 [video]

https://www.youtube.com/watch?v=u8k66A9n8gE
1•st_goliath•15m ago•0 comments

Transport access reduces deprivation: When colocation misleads

https://pnas.scienceconnect.io/error?msg=ewogICJpZCIgOiAiNmU3ZTA0MTEtMWQ1Yi00NDhjLTg0MDgtZGE4NjI4...
2•Anon84•17m ago•0 comments

March 2026 Top New Cran Packages

https://rworks.dev/posts/march-2026-top-40-new-cran-packages/
2•ionychal•18m ago•0 comments

How Synthesize_capability Works

https://ninjahawk.github.io/blog/posts/synthesize-capability.html
1•ninjahawk1•23m ago•0 comments

Early and Late-Stage Hypergrowth

https://lethain.com/early-late-stage-hypergrowth/
1•milkglass•27m ago•0 comments

No Smoking Gun

https://notoriousbfg.com/no-smoking-gun/
3•trwhite•29m ago•0 comments

Scientists Gave Cocaine to Salmon

https://www.wired.com/story/cocaine-fueled-wild-salmon-swam-twice-as-far-as-sober-ones/
5•ohjeez•34m ago•1 comments

Building a Web Framework from Scratch

3•NewSmoke38•34m ago•0 comments

Shipping todometer, Version 3

https://cassidoo.co/post/todometer-v3/
2•cassidoo•36m ago•0 comments

Building a daily AI news brief in 325 lines of Python

https://gist.github.com/Agentic-Intel/33fa978b281667bf0852d33f146c4528
1•Alex_Vance•37m ago•0 comments

Monero Ecosystem

https://monero.eco/
1•Cider9986•38m ago•0 comments

Theseus: Reverse-engineered reconstruction of the original Xbox 5960 dashboard

https://github.com/MrMilenko/Theseus
2•LorenDB•38m ago•0 comments

New research on analyzing and predicting token consumption of coding agents

https://arxiv.org/abs/2604.22750
3•jiaxinpei•41m ago•1 comments

Sluggers.fyi: Moneyball and Mario Super Sluggers

https://www.sluggers.fyi/
2•gsdv•43m ago•1 comments

xAI Is Reportedly Using Just 11% of Its 550k Nvidia GPUs

https://wccftech.com/xai-using-just-11-percent-gpus-while-meta-google-squeeze-out-much-more/
5•lossolo•44m ago•1 comments

Show HN: Playground for the Spectre Programming Language

https://spectrelang.org/playground
3•pizza_man•45m ago•1 comments

Show HN: Memory Safe Argon2 Implementation in Pure Swift 6

https://github.com/mimiclone/argon2-swift
2•mimiclone•55m ago•0 comments

I got tired of messy PTO spreadsheets, so I built a simple tool

https://myfreecalendar.app/
1•aliencillo•57m ago•0 comments

Three dead in suspected hantavirus outbreak on Atlantic cruise ship

https://www.bbc.co.uk/news/live/cjrzp08wx4vt
2•etiam•59m ago•0 comments

Compatibility Is a Feature

https://yusufaytas.com/compatibility-is-a-feature
7•riowashere•1h ago•0 comments

Breathtaking

https://aeon.co/essays/do-hold-your-breath-on-the-benefits-of-conscious-breathing
1•andsoitis•1h ago•0 comments

Street Fishing in the Canals of 'Little Venice' – Treviso, Italy

https://www.nytimes.com/2026/04/21/travel/treviso-italy-canal-fishing-little-venice-local-guide.html
1•bookofjoe•1h ago•1 comments