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

Nvidia: Too Many Red Flags – Ratings Downgrade

https://seekingalpha.com/article/4848532-nvidia-too-many-red-flags-rating-downgrade
2•zerosizedweasle•7m ago•0 comments

December Coding Diary

https://www.sheeeeeeeep.art/december-adventure-2025.html
3•azhenley•11m ago•0 comments

AWS and Google Cloud Collaborate on Multicloud Networking

https://cloud.google.com/blog/products/networking/aws-and-google-cloud-collaborate-on-multicloud-...
2•thm•15m ago•0 comments

Palantir's Karp on govt surveillance, AI and the Dem party – The Axios Show [video]

https://www.youtube.com/watch?v=o1ZFfK8hL5M
1•andsoitis•16m ago•0 comments

List of Mathematical Theories

https://en.wikipedia.org/wiki/List_of_mathematical_theories
1•wseqyrku•20m ago•0 comments

The $27B Leak No One Wants to Admit

https://medium.com/@diahvarlyani/the-27-billion-leak-no-one-wants-to-admit-f5f996c5ade1
2•diavarlyani•21m ago•0 comments

All life copies DNA unambiguously into proteins. Archaea may be the exception

https://news.berkeley.edu/2025/12/01/all-life-copies-dna-unambiguously-into-proteins-archaea-may-...
2•murphyslab•29m ago•1 comments

IT consultant arrested after posing with gun on LinkedIn

https://www.telegraph.co.uk/news/2025/11/28/it-consultant-arrested-after-posing-with-gun-on-linke...
4•koolba•35m ago•2 comments

Beej's Guide to Learning Computer Science

https://beej.us/guide/bglcs/html/split/
14•intelkishan•36m ago•0 comments

Move over brainrot, this year it's rage bait

https://www.helsinkitimes.fi/world-int/28265-oxford-names-rage-bait-2025-word-of-the-year.html
1•DaveZale•37m ago•0 comments

Show HN: Watsn.ai – Scarily accurate lie detector

https://watsn.ai/
2•flx1012•37m ago•0 comments

Exomind

https://bodybybtl.com/solutions/exomind/
1•andsoitis•37m ago•0 comments

Engineering a Better Java Build Tool Experience [video]

https://www.youtube.com/watch?v=-DTYm1qhQ6U
1•lihaoyi•41m ago•0 comments

America has the tools to heal division: we need to relearn them

https://bigthink.com/the-well/how-america-can-heal-division/
1•PaulHoule•45m ago•0 comments

The Hater's Guide to Nvidia

https://www.wheresyoured.at/the-haters-guide-to-nvidia/
3•PessimalDecimal•45m ago•0 comments

New AI slop signal: code blocks with weird indentation

https://xeiaso.net/notes/2025/slop-signal-indentation/
5•ajdude•46m ago•0 comments

From Silicon Valley to Hollywood, why California's job market is taking a hit

https://www.latimes.com/business/story/2025-11-26/from-silicon-valley-to-hollywood-california-job...
1•cgoodmac•47m ago•0 comments

What are small language models and how do they differ from large ones?

https://theconversation.com/what-are-small-language-models-and-how-do-they-differ-from-large-ones...
4•billybuckwheat•50m ago•0 comments

Ask HN: Recruiters, does contractor vs. FTE matter?

2•salt-thrower•51m ago•0 comments

Scribblenauts for Software

https://build.ms/2025/12/1/scribblenauts-for-software/
1•mergesort•52m ago•0 comments

Three Levels of Running LLMs from Laptop to Cluster-Scale Distributed Inference

https://www.bentoml.com/blog/running-local-llms-with-ollama-3-levels-from-local-to-distributed-in...
2•bbzjk7•55m ago•0 comments

Hytale System Requirements: Can Your PC Run Hytale?

https://hytaletop100.com/blog/hytale-system-requirements-can-your-pc-run-hytale
2•doobie12•57m ago•0 comments

Z-Image: An Efficient Image Generation Foundation Model [pdf]

https://arxiv.org/abs/2511.22699
2•SerCe•57m ago•0 comments

Decreasing Certificate Lifetimes to 45 Days

https://letsencrypt.org/2025/12/02/from-90-to-45.html
3•abraham•59m ago•0 comments

What will enter the public domain in 2026?

https://publicdomainreview.org/features/entering-the-public-domain/2026/
44•herbertl•1h ago•10 comments

Show HN: Dotgh – CLI to manage AI-assistant config templates

https://github.com/openjny/dotgh
1•openjny•1h ago•0 comments

Airwallex Faces China Backdoor Allegations from Prominent VC

https://www.forbes.com/sites/boazsobrado/2025/12/01/airwallex-faces-china-backdoor-allegations-fr...
2•DustinEchoes•1h ago•0 comments

Water Cycle Diagram – Interactive 4 Stages Animation – Free Learning Tool

https://senvnv.com/
2•Luki1234•1h ago•0 comments

Leaf blowers are the latest thing dividing Americans

https://www.economist.com/united-states/2025/12/01/leaf-blowers-are-the-latest-thing-dividing-ame...
1•petethomas•1h ago•1 comments

Europe's Green Energy Rush Slashed Emissions – and Crippled the Economy

https://www.wsj.com/business/energy-oil/europes-green-energy-rush-slashed-emissionsand-crippled-t...
4•monero-xmr•1h ago•1 comments