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

Pa. high school students bloodied, handcuffed during ICE protest

https://www.pennlive.com/crime/2026/02/pa-high-school-students-bloodied-handcuffed-during-ice-pro...
1•bikenaga•1m ago•0 comments

Fast ride, higher bill: Why shared e-mopeds may widen suburban transport costs

https://techxplore.com/news/2026-02-fast-higher-bill-mopeds-widen.html
1•PaulHoule•3m ago•0 comments

Altman on AI energy: it also takes 20 years of eating food to train a human

https://old.reddit.com/r/singularity/comments/1rb2pzf/sam_altman_people_talk_about_how_much_energ...
2•puttycat•5m ago•0 comments

40 Years of Zelda

https://www.polygon.com/zelda-40th-anniversary/
1•throw0101c•6m ago•0 comments

Large-scale online deanonymization with LLMs (including HN users)

https://arxiv.org/abs/2602.16800
1•salkahfi•6m ago•0 comments

Open-AutoGLM: Zhipu AI Open-Sources a Framework for Autonomous Phone Agents

https://theagenttimes.com/articles/open-autoglm-23k-stars-the-phone-agent-framework-from-chinas-a...
1•Ross00781•7m ago•0 comments

Cromemco C-10 Personal Computer – By John Paul Wohlscheid

https://computeradsfromthepast.substack.com/p/cromemco-c-10-personal-computer
1•rbanffy•7m ago•0 comments

Show HN: FounderSDR – AI cold email outreach for B2B SaaS founders ($299/mo)

https://founder-sdr.surge.sh
2•AISDR•8m ago•0 comments

We searched 852K Epstein docs for pizza, ice cream and every food code word

https://twitter.com/EpsteinSecrets/status/2025400741360234503
2•epsteinsecrets•8m ago•0 comments

A monthly dump of the 15,000 most-downloaded packages from PyPI

https://hugovk.github.io/top-pypi-packages/
2•gjvc•8m ago•0 comments

The right time: Leaving Automattic

https://nickdiego.com/the-right-time
2•taubek•8m ago•0 comments

Facing a mental health crisis, NJ school pulls beloved novel from English class

https://www.npr.org/2026/02/20/nx-s1-5708741/junot-diaz-oscar-wao-mental-health-book-bans
2•randycupertino•9m ago•0 comments

SEC Says Probe Involving AppLovin 'Still Active and Ongoing'

https://www.bloomberg.com/news/articles/2026-02-20/sec-says-probe-involving-applovin-is-still-act...
2•1vuio0pswjnm7•13m ago•0 comments

Never leave the home row to navigate tmux panes

https://raine.dev/blog/tmux-navigate-panes-home-row/
2•rane•14m ago•0 comments

Privacy first image converted / copressor

https://twitter.com/_juliushere/status/2025613479248310443
2•gintokinx•16m ago•0 comments

Ask HN: What breaks when you run AI agents unsupervised?

1•marvin_nora•16m ago•1 comments

Nvidia's Stock Is So Stuck Even Blowout Earnings May Not Lift It

https://www.bloomberg.com/news/articles/2026-02-22/nvidia-s-stock-is-so-stuck-even-blowout-earnin...
1•1vuio0pswjnm7•16m ago•1 comments

How AI Is Accelerating Life-Saving Discovery

https://gladstone.org/index.php/news/how-ai-accelerating-life-saving-discovery
1•giuliomagnifico•19m ago•0 comments

Show HN: Stopping Claude Code from wasting 50K tokens/turn in agent spawns

https://github.com/jungjaehoon-lifegamez/MAMA/pull/43
2•jungjaehoon•19m ago•0 comments

How to cut back on your social media addiction

https://nypost.com/2026/02/21/tech/heres-how-to-cut-back-on-your-social-media-addiction/
2•1vuio0pswjnm7•20m ago•0 comments

Should I add this acknowledgement/shoutout by xAI/Grok to my resume?

2•aehsan4004•23m ago•0 comments

Awesome Claws

https://github.com/machinae/awesome-claws
2•il•23m ago•1 comments

The Limits of AI

https://hughhowey.com/the-limits-of-ai/
1•hentrep•26m ago•0 comments

Show HN: I quit MyNetDiary after 3 years of popups and built a calorie tracker

https://calories.today/app.html
2•davemuz•27m ago•0 comments

Show HN: Droneski, an FPV drone ski camera simulator

https://github.com/imjasonh/droneski
2•ImJasonH•28m ago•1 comments

AI System – Is It Your "Cognitive Exoskeleton" or Simply Your Super-Fast Intern?

4•kokhanserhii•28m ago•0 comments

Claws don't need to be complicated

https://justin.abrah.ms/blog/2026-02-21-claws-don-t-need-to-be-complicated.html
1•abrahms•28m ago•0 comments

Amazon, Meta, Alphabet report plunging tax bills thanks to AI and tax changes

https://finance.yahoo.com/news/amazon-meta-and-alphabet-report-plunging-tax-bills-thanks-to-ai-in...
2•epistasis•29m ago•1 comments

Scientists discover new dinosaur species deep in the Sahara Desert

https://abcnews.com/International/scientists-discover-new-dinosaur-species-deep-sahara-desert/sto...
1•Brajeshwar•30m ago•0 comments

Internet Archive X Gray Area: Trillionth Webpage Net.Art Commissions

https://blog.archive.org/internet-archive-x-gray-area-trillionth-webpage-net-art-commissions/
1•Brajeshwar•30m ago•0 comments