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•8mo 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•8mo 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: Open-source AI workflows for high converting social media videos

https://github.com/gptmarket/ai-workflows
1•tadasg•40s ago•0 comments

NATO members face tariffs increasing to 25% until Greenland purchase deal struck

https://www.cnbc.com/2026/01/17/trump-greenland-tariffs-nato.html
1•pseudolus•1m ago•0 comments

Dagwood Sandwich

https://en.wikipedia.org/wiki/Dagwood_sandwich
1•thunderbong•3m ago•0 comments

Claude Growing a Tomato Plant

https://autoncorp.com/biodome/
1•moebrowne•8m ago•0 comments

We Were Never Good Programmers

https://idiallo.com/blog/we-were-never-good-programmers
2•Brajeshwar•8m ago•0 comments

How to make a Blockbuster VHS sleeve for any movie

https://www.popsci.com/technology/how-to-make-blockbuster-sleeve/
1•Brajeshwar•8m ago•0 comments

Why the EU is ready to drop high tariffs on China-made EVs

https://restofworld.org/2026/why-the-eu-is-ready-to-drop-high-tariffs-on-china-made-evs/
1•Brajeshwar•8m ago•0 comments

Show HN: LifeCal – Life Calendar Live Wallpaper

https://play.google.com/store/apps/details?id=com.bufferlabs.lifecal&hl=en_US
1•sumit-paul•8m ago•0 comments

Show HN: Reddit GDPR Export Viewer – Built After Ban, Unban, Reban

https://github.com/guilamu/reddit-gdpr-export-viewer
1•guilamu•11m ago•0 comments

A project planner designed for developers

https://getfrostbyte.dev/
2•thamiltonsmith•13m ago•0 comments

Musk's Starlink faces high-profile security test in Iran crackdown

https://www.japantimes.co.jp/business/2026/01/17/tech/starlink-internet-test-iran-analysis/
3•everybodyknows•17m ago•0 comments

OpenAI to Test Targeted Ads in ChatGPT, Stepping Up Revenue Push

https://www.bloomberg.com/news/articles/2026-01-16/openai-to-test-targeted-ads-in-chatgpt-steppin...
2•1vuio0pswjnm7•18m ago•0 comments

How much TV is too much TV?

https://www.ft.com/content/12f57e3c-c824-4c4c-bab0-7cd9321a8be7
1•7777777phil•18m ago•0 comments

Ask HN: Purchasing a "Premium" Domain

1•devld•19m ago•1 comments

Trump to impose tariffs on European nations over Greenland

https://www.dw.com/en/trump-to-impose-tariffs-on-european-nations-over-greenland/a-75549367
7•lysace•21m ago•5 comments

Why Young Women Moved Left While Young Men Stayed

https://twitter.com/IterIntellectus/status/2012220254504530043
1•bilsbie•21m ago•1 comments

Don't Try to Step-Function Everyone All at Once (2024)

https://staysaasy.com/startups/2024/06/12/focused-growth.html
1•speckx•22m ago•0 comments

Show HN: Evolution of my humble library of games built with my own engine

https://carimbo.games/
1•delduca•23m ago•0 comments

Eight European countries face 10% tariff for opposing US control of Greenland

https://apnews.com/article/denmark-greenland-us-trump-4ad99ea3975a8b62d37bd04961feda55
57•2OEH8eoCRo0•23m ago•31 comments

WorldCat (OCLC)

https://www.oclc.org/en/worldcat.html
1•bookofjoe•23m ago•0 comments

L for the Price of One: On the Benefits of Using more than t+1 Parties in Thres [pdf]

https://eprint.iacr.org/2026/061.pdf
1•todsacerdoti•24m ago•0 comments

TTY and Buffering

https://mattrighetti.com/2026/01/12/tty-and-buffering
2•mattrighetti•25m ago•0 comments

What are you doing for your health this year?

1•Newhouser•28m ago•0 comments

Parallelizable threshold ECDSA with more than t+1 parties

https://eprint.iacr.org/2026/061
1•badcryptobitch•29m ago•0 comments

The integrated explicit analytic number theory network

https://terrytao.wordpress.com/2026/01/15/the-integrated-explicit-analytic-number-theory-network/
2•taubek•32m ago•0 comments

The Year Everything Changed

https://networkgames.fyi/the-year-everything-changed
1•daniloc•33m ago•0 comments

A minimal hackable implementation of policy gradients (GRPO, PPO, REINFORCE)

https://github.com/zafstojano/policy-gradients
1•starzmustdie•33m ago•0 comments

An Elizabethan mansion's secrets for staying warm

https://www.bbc.com/future/article/20260116-an-elizabethan-mansions-secrets-for-staying-warm
6•Tachyooon•33m ago•0 comments

AI is speeding into healthcare. Who should regulate it?

https://news.harvard.edu/gazette/story/2026/01/ai-is-speeding-into-healthcare-who-should-regulate...
2•gnabgib•37m ago•0 comments

Signal feature request: mesh networking

https://community.signalusers.org/t/mesh-network-messaging-p2p-networking/2188?page=3
3•arthuredelstein•37m ago•0 comments