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?

NFCShare Android Trojan: NFC card data theft via malicious APK

https://www.d3lab.net/nfcshare-android-trojan-nfc-card-data-theft-via-malicious-apk/
1•drego85•41s ago•1 comments

Networks Hold the Key to a Decades-Old Problem About Waves

https://www.quantamagazine.org/networks-hold-the-key-to-a-decades-old-problem-about-waves-20260128/
1•pseudolus•1m ago•0 comments

Show HN: LibPDF – The PDF library for TypeScript that I needed

https://github.com/LibPDF-js/core
1•xenni•2m ago•0 comments

AI Automation Crushed Jobs in 2025 and What to Do Next

https://adam2scale.com/ai-automation-job-displacement-2025/
1•ademmchaigui•2m ago•0 comments

TypeScript's Anders Hejlsberg on AI as a "regurgitator" reshaping software

https://devclass.com/2026/01/28/typescript-inventor-anders-hejlsberg-ai-is-a-big-regurgitator-of-...
1•birdculture•3m ago•0 comments

My AI Coding Tips

https://quickchat.ai/post/my-ai-coding-tips
2•piotrgrudzien•4m ago•0 comments

SafeQL: An ESLint plugin for writing SQL queries in a type-safe way

https://safeql.dev
1•Palmik•5m ago•0 comments

Show HN: A minimal control primitive between impulse and action (OP Gap)

1•Vranasko•6m ago•1 comments

Open Gaming Collective – the future of Linux gaming

https://opengamingcollective.org
2•bovermyer•10m ago•0 comments

Zig and the M×N Supply Chain Problem

https://nesbitt.io/2026/01/29/zig-and-the-mxn-supply-chain-problem.html
1•todsacerdoti•12m ago•0 comments

The Don't "Contact Us" Page

https://blog.jim-nielsen.com/2026/dont-contact-us-page/
1•mefengl•13m ago•0 comments

One-Click RCE on Clawd/Moltbot in 2 Hours with an AI Hacking Agent

https://ethiack.com/news/blog/one-click-rce-moltbot
1•jorgemonteiro•15m ago•0 comments

Iran's global internet traffic back to normal

https://radar.cloudflare.com/traffic/ir?dateRange=28d
2•morajabi•17m ago•0 comments

Contract Red Flags in 60 Seconds

https://lexray.io/freelancers
1•mooreds•19m ago•0 comments

Terminally online Mistral Vibe 2.0

https://mistral.ai/news/mistral-vibe-2-0
2•lis•20m ago•0 comments

AI will not solve world hunger

https://thomasrigby.com/posts/ai-will-not-solve-world-hunger/
1•speckx•20m ago•0 comments

Ubiquiti: The U.S. Tech Enabling Russia's Drone War

https://hntrbrk.com/ubiquiti/
1•vga42•20m ago•0 comments

How Your Home Office Is Sabotaging You

https://oedmethod.medium.com/your-home-office-is-sabotaging-you-9d88f99cde2e
1•truenfel•21m ago•0 comments

APFS is case-sensitive on first write and case-insensitive afterwards

https://pckt.blog/b/dev-stream/apfs-is-case-sensitive-on-first-write-and-case-insensitive-afterwa...
2•cprecioso•21m ago•0 comments

Study: AI learns better when it talks to itself

https://www.oist.jp/news-center/news/2026/1/28/ai-learns-better-when-it-talks-itself
2•giuliomagnifico•22m ago•0 comments

We got Claude to teach open models how to write CUDA kernels

https://huggingface.co/blog/upskill
1•mooreds•23m ago•0 comments

Y Combinator is no longer investing in Canadian startups

https://thelogic.co/news/exclusive/y-combinator-canada-startups/
1•mooreds•24m ago•0 comments

Vitamin D and Omega-3 have a larger effect on depression than antidepressants

https://blog.ncase.me/on-depression/
21•mijailt•28m ago•1 comments

Google AI Studio

https://aistudio.google.com/welcome
1•doener•30m ago•0 comments

Digital Freedom Across the World

https://eylenburg.github.io/countries.htm
2•treebrained•31m ago•0 comments

Free SEO tools – no signup, no email, just paste URL

https://www.rankgap.io/tools
1•itsjoaki•31m ago•0 comments

Peer Review 2027

https://osf.io/preprints/socarxiv/594zj_v1
1•stafford_beer•33m ago•0 comments

OpenAI is Broke and so is everyone else [video]

https://www.youtube.com/watch?v=Y3N9qlPZBc0
2•el_hacker•36m ago•0 comments

WebGL Raytracer

https://oseiskar.github.io/webgl-raytracer/
3•xyzzy3000•39m ago•0 comments

What triggers the mole in the window in Doki Doki Penguin Land? [video]

https://www.youtube.com/watch?v=w6p3jxO6zfk
1•zappatic•39m ago•0 comments