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?

Iroh. How it uses Relays

https://docs.iroh.computer/concepts/relays
1•janandonly•1m ago•0 comments

Porting Go's strings package to C

https://antonz.org/porting-go-strings/
1•valyala•3m ago•0 comments

Who stands to gain the most from the leak of Claude's source code?

https://www.youtube.com/watch?v=RpFh0Nc7RvA
1•haebom•3m ago•0 comments

Show HN: Markdown wikis that are easy for agents and humans

https://markmedown.dev
1•ultrafro2•6m ago•0 comments

The Vocabulary Gap

https://dekodiert.de/en/articles/vokabelluecke
1•sdoering•10m ago•0 comments

Artemis II – Live Mission Tracker

https://artemis2livetracker.com/
3•sdoering•11m ago•0 comments

100 Hours Inside Kimi

https://twitter.com/ruima/status/2039245985520681257
1•gmays•17m ago•0 comments

IResearch: A C++ search library with benchmark

https://blog.serenedb.com/search-benchmark-game-overview
1•janemanos•17m ago•0 comments

Show HN: Vektor – local-first associative memory for AI agents

https://vektormemory.com/docs/
1•vektormemory•19m ago•0 comments

Bitchat over Meshcore 1.14.1

https://twitter.com/eddieoz/status/2040508233748451668
2•eddieoz•19m ago•0 comments

The threat is comfortable drift toward not understanding what you're doing

https://ergosphere.blog/posts/the-machines-are-fine/
2•zaikunzhang•21m ago•0 comments

Planet Labs to indefinitely withhold Iran war images

https://www.reuters.com/business/media-telecom/satellite-firm-planet-labs-indefinitely-withhold-i...
2•jonbaer•29m ago•0 comments

Bigme Hibreak: dual screen color eInk smartphone

https://store.bigme.vip/pages/hibreak-dual-smartphone
1•thunderbong•31m ago•0 comments

Gen-Searcher: Open-source agent that searches the web before generating images

https://github.com/tulerfeng/Gen-Searcher
1•steveharing1•31m ago•0 comments

I Accidentally Reinvented Kernel (Programming Language)

https://fayash.me/posts/how-i-accidentally-reinvented-kernel
1•fayash•38m ago•0 comments

Study: The AI Body Gap

https://www.uclahealth.org/news/release/ai-can-describe-human-experiences-lacks-experience-actual-2
1•giuliomagnifico•40m ago•0 comments

Update: Using third-party harnesses with your Claude subscription

2•seifbenayed1992•46m ago•0 comments

Ask HN: Vibe Coding over Easter?

2•datawars•48m ago•0 comments

Is the UK falling out of love with social media?

https://www.theguardian.com/news/ng-interactive/2026/apr/05/uk-social-media-apps-share
1•mindracer•55m ago•0 comments

Dockhand: Docker Management Suite

https://dockhand.pro/
1•indigodaddy•1h ago•0 comments

Microsoft QDK from .NET to Rust: 100x faster, 100x smaller

https://quantum.microsoft.com/en-us/insights/blogs/qir/introducing-the-microsoft-quantum-developm...
2•AbuAssar•1h ago•0 comments

Record demo videos in the browser: multi-screen, camera, annotations, subtitles

https://github.com/KaliedaRik/sc-screen-recorder/blob/main/README.md
1•rikroots•1h ago•1 comments

Skills to construct and read docs following the progressive exposure principle

2•Felix-Zhenghao•1h ago•1 comments

High meat consumption linked to lower dementia risk in genetic risk group

https://news.ki.se/high-meat-consumption-linked-to-lower-dementia-risk-in-genetic-risk-group
3•tannhaeuser•1h ago•0 comments

Self-Employed

1•mjuhler•1h ago•0 comments

Web3 project technical analysis Skill for AI agents

https://clawhub.ai/one0000u/web3tech
2•0xmrone111•1h ago•0 comments

Apple Expands Age Verification to Singapore and South Korea

https://reclaimthenet.org/apple-expands-age-verification-to-singapore-south-korea
1•Shank•1h ago•0 comments

Talk like caveman

https://github.com/JuliusBrussee/caveman
18•tosh•1h ago•2 comments

Show HN: I built an EAT skill that lets an agent place food delivery orders

https://github.com/mvksims/eatcli
1•maxshadurskiy•1h ago•0 comments

Goldman Sachs: biggest oil crisis in history is about to hit

https://bsky.app/profile/chriso-wiki.bsky.social/post/3miqdf2v6i52w
2•doener•1h ago•0 comments