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?

How to be a good conference talk audience member (2022)

https://www.mooreds.com/wordpress/archives/3522
1•mooreds•1m ago•0 comments

Who Gets to Inherit the Stars?

https://techcrunch.com/2026/01/17/who-gets-to-inherit-the-stars-a-space-ethicist-on-what-were-not...
1•zansara•1m ago•0 comments

A Hit Movie Set Deep Inside an AI Lab

https://www.wsj.com/tech/ai/google-deepmind-documentary-youtube-thinking-game-732bfa06
1•bookofjoe•4m ago•1 comments

My Personal Financial Strategy (2020)

https://www.rdegges.com/2020/my-personal-financial-strategy/
1•mooreds•4m ago•0 comments

The Suicide Pact: what happens the moment we invade Greenland

https://substack.com/inbox/post/184398789
1•Eric_WVGG•6m ago•2 comments

DetLLM – Deterministic Inference Checks

https://github.com/tommasocerruti/detllm
1•cerru905•8m ago•1 comments

Musk wants up to $134B in OpenAI lawsuit, despite $700B fortune

https://techcrunch.com/2026/01/17/musk-wants-up-to-134b-in-openai-lawsuit-despite-700b-fortune/
1•SilverElfin•12m ago•2 comments

Camden County Police in New Jersey expands drone program

https://www.cbsnews.com/philadelphia/news/camden-nj-homicides-drone-program/
1•pilingual•13m ago•0 comments

Ask HN: Duterte EJK, 2025-09, US extrajudicial killing in the Caribbean?

1•stopbulying•14m ago•1 comments

Authenticating Digital Evidence in US Courts [pdf]

https://law.baylor.edu/sites/g/files/ecbvkj1546/files/2023-11/7_grimm_capra_joseph.pdf
1•colonCapitalDee•14m ago•0 comments

EU Set to Halt US Trade Deal over Trump's New Tariff Threat

https://www.bloomberg.com/news/articles/2026-01-17/eu-set-to-halt-us-trade-deal-over-trump-s-late...
4•ekjhgkejhgk•16m ago•2 comments

Ask HN: Why is the $0 hijacking of intellectual labor so normalized in OSS?

1•fumi2026•19m ago•4 comments

My Rube Goldberg RSS Pipeline

https://taoofmac.com/space/blog/2026/01/17/2130
1•rcarmo•19m ago•0 comments

Global trust crisis deepfakes AI

https://techfusiondaily.com/global-trust-crisis-deepfakes-ai/
1•nelkazzu•21m ago•0 comments

Ask HN: How AliExpress gets its recommendation as priority in Gmail?

1•RicoElectrico•21m ago•0 comments

Weight-loss drugs could save U.S. airlines more than $500M this year

https://www.latimes.com/business/story/2026-01-15/weight-loss-drugs-help-airlines
2•cwwc•21m ago•0 comments

A.I. and Burnout

https://petersobot.com/blog/on-ai-and-burnout/index.html
3•psobot•22m ago•0 comments

"This is the way" parody Bluesky posts

https://bsky.app/profile/shengokai.blacksky.app/post/3mcndjl5hw22w/quotes
1•mooreds•23m ago•3 comments

Texas A&M university is banning Plato, citing his "gender ideology"

https://lithub.com/texas-am-is-banning-plato-citing-his-gender-ideology/
5•Geekette•25m ago•1 comments

Has AI removed the appeal of vertical SaaS?

https://www.elliotcsmith.com/has-ai-removed-the-appeal-of-vertical-saas/
1•smitec•28m ago•0 comments

Pittsburgh researchers developing lifesaving robot "dogs"

https://www.cbsnews.com/news/pittsburgh-researchers-carnegie-mellon-life-saving-robot-dogs/
1•rolph•29m ago•0 comments

Show HN: Potatoverse, Platform for Apps

https://github.com/blue-monads/potatoverse
5•born-jre•31m ago•1 comments

The Engineering Management Myths Star Trek Teaches (2022)

https://philipotoole.com/star-trek-made-me-a-bad-engineering-manager/
4•otoolep•33m ago•0 comments

Partial reprogramming as a strategy for aging and disease

https://www.sciencedirect.com/science/article/pii/S1568163726000012
1•jjoe•35m ago•0 comments

DIY Potato Aerogel: Free Cooling from Your Kitchen? [video]

https://www.youtube.com/watch?v=J87Qyxzm_fQ
1•znpy•36m ago•0 comments

The EU, spurred by Trump, to sign mega free-trade deal with South America

https://www.washingtonpost.com/world/2026/01/17/eu-trade-deal-mercosur-south-america/
5•stopbulying•38m ago•3 comments

Auto start Next.js dev server when you open the project in VSCode

https://marketplace.visualstudio.com/items?itemName=bullptr.nextjs-code
1•bukharim96•38m ago•0 comments

Show HN: School/ಶಾಲೆ – Agentic Voice Tutor for Students

1•gaganyatri•44m ago•0 comments

Apache Arrow for the Database

https://dataengineeringcentral.substack.com/p/apache-arrow-for-the-database
1•tanelpoder•45m ago•0 comments

New fintech company claims Bitcoin will reach 100M by 2050

https://www.distributedledgertechnologies.com/
1•winnertakeall•46m ago•2 comments