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?

Show HN: A web page that counts its own visitors and cannot lie

https://ava-wall.surge.sh
1•ava-14•9m ago•0 comments

Jev is trained on 100% synthetic data

https://twitter.com/CompleteSkeptic/status/2100617775823966680
1•rinesh•11m ago•0 comments

Show HN: Fouine – local full-text and semantic search for scanned PDFs on macOS

https://github.com/basedpolymer/fouine
1•basedpolymer•15m ago•0 comments

What to Expect When You're Expecting (A World of Multi-Agent Systems)

https://asteriskmag.com/issues/15/what-to-expect-when-you-re-expecting-a-world-of-multi-agent-sys...
1•ronfriedhaber•15m ago•0 comments

Dxui – A declarative desktop GUI framework for Go, without cgo

https://github.com/dxui-org/dxui
1•truda•18m ago•0 comments

Hugging Face attack: "This might be the clearest warning shot we ever get" [video]

https://www.youtube.com/watch?v=X50zezLFWWI
1•looofooo0•19m ago•0 comments

Eight language models and the 2026 Berlin state election

https://wahl.ksmn.dev/en/
2•hemartin•19m ago•0 comments

Cassette-shaped MP3 player meant to be played on tape decks [video]

https://www.youtube.com/watch?v=otXrFBq0HWQ
1•eps•19m ago•0 comments

FeatureMap – map your product's features

https://github.com/yonathan06/featuremap
1•yonatan06•20m ago•0 comments

Why dynamic balance matters at 1200M/min

1•AmyraZhao•21m ago•0 comments

Gyazo screen capture tool confirms data breach

https://updates.gyazo.com/notice-and-apology-regarding-a-data-breach-resulting-from-unauthorized-...
1•2sf5•23m ago•0 comments

What to Read to Stay Grounded Amidst AI Doomerism

https://buttondown.com/maiht3k/archive/what-to-read-to-stay-grounded-amidst-ai-doomerism/
1•james_mir•26m ago•0 comments

The Entity Service Antipattern

https://www.michaelnygard.com/blog/2017/12/the-entity-service-antipattern/
1•simianwords•30m ago•0 comments

One AWS Bill Went from Almost $8k a Month Toward $6k

https://greenops.cloud/blog/blog-cost-drop-8k-to-6k
1•depidsvy•33m ago•0 comments

Has World War III Already Started?

https://www.nytimes.com/2026/08/25/opinion/has-world-war-iii-already-started.html
2•Alien1Being•33m ago•0 comments

Targeting 25 years of Windows with Visual Studio 2019

https://building.enlyze.com/posts/targeting-25-years-of-windows-with-visual-studio-2019/
2•birdculture•34m ago•0 comments

The Cost of AI Is Now My Main Blocker

https://www.vincentschmalbach.com/cost-of-ai-is-now-my-main-blocker/
1•vincent_s•36m ago•0 comments

BuiltByVibe – Directory of vibe-coded apps with a free MCP server

https://builtbyvibe.dev/
1•notevenbuttery•39m ago•0 comments

Altman, Huang: "trust me; gonna b fine"; Sanders: "AI more dangerous than nukes"

https://garymarcus.substack.com/p/sam-altman-says-trust-me-jensen-huang
3•mdp2021•41m ago•2 comments

Fermi.gg – Daily game based on the "Fermi estimation" technique

https://fermi.gg
1•epaga•46m ago•0 comments

Everything Feels Fake – Here's Why: The Power Elite Playbook [video]

https://www.youtube.com/watch?v=P33-rjgOXzg
1•enemyz0r•51m ago•0 comments

How to Unslop a Commit?

1•blackbit•55m ago•0 comments

Plain Text Sports

https://plaintextsports.com/
1•tosh•56m ago•1 comments

ProductFight – Productfight.lol

2•thegeekybaniya•56m ago•0 comments

Ask HN: What do your agents do?

1•exyo•56m ago•0 comments

New wild cat species discovered – with only one known living member

https://www.bbc.com/news/articles/c6x2zgv9rr4ro
1•drgo•57m ago•0 comments

The Filename`IBHashImageName` Breaks iOS[video]

https://www.youtube.com/watch?v=Dt4o7hz0B60
1•sharma-arjun•59m ago•1 comments

The Front Page of the Internet Is Up for Grabs

https://idiallo.com/byte-size/the-front-page-of-the-internet
1•garo-pro•59m ago•0 comments

VIPR RNA-guided DNA recognition by noncontiguous geometric triplex formation

https://www.science.org/doi/10.1126/science.aei3472
1•gone35•1h ago•0 comments

Cloudron 10 – A decade of self-hosting

https://blog.cloudron.io/cloudron-10-a-decade-of-self-hosting/
2•gramakri2•1h ago•0 comments