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?

Biff 2.0.4: LLM Skills

https://biffweb.com/p/skills/
1•TheWiggles•1m ago•0 comments

Show HN: God – real-time control room for LLM agent societies (EMNLP 2026 demo)

https://github.com/XiaoLuoLYG/GOD
2•xiaoluolyg•8m ago•0 comments

U.S. birth rate drops to record low, but older women are having more babies

https://www.npr.org/2026/10/24/nx-s1-6012804/birth-rate-population-cdc
1•pseudolus•12m ago•0 comments

iPhone Duo Teardown [video]

https://www.youtube.com/watch?v=WOVIjFnivJA
2•obilgic•19m ago•0 comments

The subreddit each age is most over-represented in, women vs. men

https://www.reddit.com/r/dataisbeautiful/comments/1xf6gt3/oc_i_checked_177_million_redditors_who_...
1•gmays•22m ago•0 comments

IBM CEO says open weight models are now irresistibly good and cheap on-prem

https://www.theregister.com/systems/2026/10/22/ibm-ceo-says-open-weight-models-are-now-irresistib...
5•Betelbuddy•32m ago•0 comments

Data centre debate heats up ahead of US midterms

https://www.bbc.com/news/articles/cq2e9we7w2ejo
3•Betelbuddy•40m ago•0 comments

Recycling ANSI art: Tracing the origins of Fire Escape's BBS logon screens

https://breakintochat.com/blog/2026/10/25/recycling-ansi-art/
3•Kirkman14•40m ago•2 comments

Show HN: Little Fun Games – daily trivia with uncommon-answer scoring

https://littlefungames.com/
2•littlefungames•42m ago•0 comments

Grokking: A 777-Parameter Transformer Learned Real Math

https://themenonlab.blog/blog/grokking-777-parameter-transformer
3•peter_d_sherman•52m ago•1 comments

iPhone Duo Teardown

https://www.ifixit.com/News/119895/iphone-duo-teardown
15•kripy•56m ago•0 comments

Cve.now: A Free Feed of Security Vulnerabilities for Agents

https://www.sazabi.com/blog/introducing-cve-now
2•shcallaway•1h ago•0 comments

Please Don't Mess with Links

https://maurycyz.com/misc/real_links/
5•birdculture•1h ago•0 comments

Scientists Discover a Surprising Shortcut to Nuclear Fusion

https://scitechdaily.com/scientists-discover-a-surprising-shortcut-to-nuclear-fusion/
2•g-b-r•1h ago•0 comments

Drone warfare is evolving faster than armies can adapt

https://www.thestar.com/news/canada/drone-warfare-is-evolving-faster-than-armies-can-adapt-expert...
2•sleepyguy•1h ago•1 comments

Show HN: Freehire, open-source search 3M+ tech jobs from company career boards

https://freehire.me/
2•i_strelov•1h ago•0 comments

Show HN: Depono – Chat with many AI models at cost and 10%, files kept in Git

https://depono.xyz/
1•saxonnicholls•1h ago•0 comments

Show HN: RainbowSay – Learn, teach, research languages live with shows you love

https://rainbowsay.ai/
2•gigapotential•1h ago•0 comments

Bringing Flame Serving Close to Standalone vLLM

https://xflops.io/blog/flame-vllm-serving/
1•k82cn•1h ago•0 comments

Removing Next.js Got My Blog to 100 on Every Lighthouse Category

https://korindiehacker.bloffy.blog/en/removing-nextjs-got-my-blog-to-100-on-every-lighthouse-cate...
2•textlanes33•1h ago•0 comments

Setup Home Lab Static Website: Rasp Pi, Astro, Nginx Proxy Mgmt, Cloudflare

https://blog.jacq.cc/guides/static-blog-raspberry-pi-nginx-proxy-manager-cloudflare/
1•xx__yy•1h ago•0 comments

Ask HN: Is it not possible to enroll for Apple Developer anymore?

4•olalonde•1h ago•0 comments

Coding Is Dead. Programming Is Not

https://twitter.com/jay4fun_/status/2114522024387269032
2•jairojair•1h ago•0 comments

Learning to Ride Your Brain

https://contraptions.venkateshrao.com/p/on-learning-to-ride-your-brain
2•colinprince•1h ago•0 comments

Survival Ball versus Mode Explained: Everything You Need to Know [video]

https://www.youtube.com/watch?v=A-aIvcJqgDQ
1•lopespm•1h ago•0 comments

Trump critic Lula wins reelection in Brazil, securing fourth presidential term

https://apnews.com/article/brazil-election-lula-bolsonaro-runoff-vote-president-e2c9fe8fc4aa3e367...
3•kaycebasques•1h ago•1 comments

Has PAUSE account registration slowed down recently?

https://www.nntp.perl.org/group/perl.modules/2026/10.html
1•viasnake•1h ago•0 comments

Dua Lipa's Manifesto Library

https://www.banned-books.org/dua-lipa-manifesto-library
1•weinzierl•1h ago•0 comments

CORDIC

https://en.wikipedia.org/wiki/CORDIC
1•gregsadetsky•1h ago•0 comments

One gateway for your AI agents, APIs and MCP servers

https://github.com/Clivern/Sloth
2•clivern•1h ago•0 comments