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?

DJT Says Microsoft to Make Changes to Curb Data Center Power Costs for Americans

https://money.usnews.com/investing/news/articles/2026-01-12/trump-says-microsoft-to-make-changes-...
1•schmuckonwheels•1m ago•0 comments

Living with LLMs Everywhere – How Ambient LLMs Negate Security Policy

1•djwide•3m ago•0 comments

Who Companies Call When They Want to Become a Bank

https://www.bloomberg.com/news/articles/2026-01-12/fintechs-call-klaros-group-when-they-want-bank...
1•petethomas•7m ago•0 comments

Apple: You (Still) Don't Understand the Vision Pro

https://stratechery.com/2026/apple-you-still-dont-understand-the-vision-pro/
1•feross•7m ago•1 comments

Show HN: Idlen.io ($IDL), the first privacy-first AI ad network is launched

https://www.idlen.io/fr/
3•paulefizelier•8m ago•1 comments

Ask HN: How are you using AI to self-augment?

1•almostlikemagic•13m ago•0 comments

Show HN: I built a tool to calculate the True Cost of Ownership (TCO) for yachts

https://yachtvaluereport.com/
2•todaycompanies•13m ago•3 comments

Sherlock MCP server so you can use AI to do OSI research

https://github.com/Burnsedia/sherlock-mcp
2•Burnsedia•15m ago•0 comments

Picao AI Landing Page

https://picaoai.com
2•Kathrine_Oduah•16m ago•0 comments

Meta Taps Trump Alum as New President

https://thehill.com/newsletters/technology/5685457-meta-taps-trump-alum-as-new-president
4•650REDHAIR•18m ago•1 comments

Ackman Pitches Prepayment Penalties as Way to Cut Mortgage Rates

https://www.bloomberg.com/news/articles/2026-01-12/ackman-pitches-prepayment-penalties-as-way-to-...
1•petethomas•19m ago•0 comments

Mystery: Why do some LLMs produce more coil noise on Mac Studio M3 Ultra?

https://twitter.com/OrganicGPT/status/2010879700785373437
3•behnamoh•21m ago•0 comments

I'm a Happy Engineer Now

https://blog.denv.it/posts/im-happy-engineer-now/
5•denysvitali•22m ago•0 comments

Spy Shots Catch the Strangest New Car We've Seen Since Cybertruck

https://carbuzz.com/ceer-suv-spy-shots-january-2026/
1•gnabgib•25m ago•0 comments

Phind Is Shutting Down

1•wilsonjholmes•27m ago•0 comments

Is life a game?Philosopher C. Thi Nguyen argues that play is the meaning of life

https://www.newyorker.com/culture/open-questions/is-life-a-game
2•bookofjoe•31m ago•2 comments

Tell HN: DigitalOcean's managed services broke each other after update

9•neilfrndes•36m ago•2 comments

Malicious Chrome Extension Steals MEXC API Keys for Account Takeover

https://socket.dev/blog/malicious-chrome-extension-steals-mexc-api-keys
2•feross•37m ago•0 comments

Nate the Lawyer breaks down the ICE shooting footage in detail [video]

https://www.youtube.com/watch?v=bDda-L_ZOE8
8•zahlman•38m ago•4 comments

Yes, You Can Use AI in Our Interviews. In Fact, We Insist

https://www.canva.dev/blog/engineering/yes-you-can-use-ai-in-our-interviews/
1•SupremumLimit•39m ago•3 comments

Vibe Engineering: What I've Learned Working with AI Coding Agents

https://twitter.com/mrexodia/status/2010157660885176767
1•thewavelength•40m ago•1 comments

Show HN: I made a physical app blocker with ESP32

https://github.com/benjamin-feldman/esp32-blocker
1•b_feldman•41m ago•0 comments

Show HN: I found that Facebook made around 14K from my daily usage

3•puildupO•48m ago•1 comments

Bullshit Ability as an Honest Signal of Intelligence

https://pmc.ncbi.nlm.nih.gov/articles/PMC10303565/
2•jerlendds•49m ago•0 comments

Show HN: Blockchain-Based Equity with Separated Economic and Governance Rights

https://zenodo.org/records/18209805
2•iam_pri_s•51m ago•0 comments

Hotdog – Performant Bun Based Web-Server Framework

https://github.com/shedtheshade/hotdog
1•vednig•53m ago•0 comments

We're all just content for ICE

https://www.garbageday.email/p/we-re-all-just-content-for-ice
21•woggy•53m ago•22 comments

DeepSeek founder's hedge fund generated over 50% returns in the past year

https://www.bloomberg.com/news/articles/2026-01-12/deepseek-founder-liang-s-funds-surge-57-as-chi...
2•didntknowyou•54m ago•1 comments

Reject the Religion of Efficiency

https://www.digitalliturgies.net/p/reject-the-religion-of-efficiency
3•zdw•55m ago•0 comments

TR-100 Machine Report

https://github.com/usgraphics/usgc-machine-report
1•carlos-menezes•55m ago•0 comments