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

Using procedural generation to create the 10k landscapes in The Sentinel

https://thesentinel.bbcelite.com/deep_dives/generating_the_landscape.html
1•msephton•21s ago•0 comments

Take Your Time (2017)

https://blog.ncase.me/take-your-time/
1•mgarciaisaia•1m ago•1 comments

Colobot

https://en.wikipedia.org/wiki/Colobot
1•Nition•10m ago•0 comments

MDM is dead. Long live ACE?

https://bayton.org/blog/2026/03/mdm-is-dead-long-live-ace/
1•p2detar•11m ago•0 comments

JavaScript Isn't Scheme (2013)

https://journal.stuffwithstuff.com/2013/07/18/javascript-isnt-scheme/
1•Tomte•11m ago•0 comments

"Clinejection" Turned an AI Bot into a Supply Chain Attack – Snyk

https://snyk.io/blog/cline-supply-chain-attack-prompt-injection-github-actions/
1•Daviey•13m ago•1 comments

How do you recruit accessibility testers without attracting bad actors?

https://seemeplease.com/test-with-us
1•SeeMePlease•16m ago•1 comments

I Hate Matlab: How an IDE, a Language, and a Mentality Harm (2017)

https://neuroplausible.com/matlab
1•Tomte•19m ago•0 comments

Show HN: Alt – No-code API load testing tool

https://www.apiloadtest.com
1•dbdoc•23m ago•0 comments

GPL upgrades via section 14 proxy delegation

https://runxiyu.org/comp/gplproxy/
12•weinzierl•23m ago•1 comments

Unlocking Python's Cores:Energy Implications of Removing the GIL

https://arxiv.org/abs/2603.04782
1•runningmike•23m ago•1 comments

Using time travel to remotely debug faulty DRAM (2020)

https://julialang.org/blog/2020/09/rr-memory-magic/
1•tosh•24m ago•0 comments

Ask HN: Feedback on a Rust graph algorithm framework?

1•salistellix•25m ago•0 comments

Bristol social media 'School Wars' trend blamed for attack on 12-year-old girl

https://www.itv.com/news/westcountry/2026-03-05/bristol-social-media-school-wars-trend-blamed-for...
1•DropDead•28m ago•0 comments

Show HN: AI pull request reviewer that analyzes Git diffs

1•bolitupac•30m ago•0 comments

Cursor: Build agents that run automatically

https://cursor.com/blog/automations
3•helloplanets•36m ago•0 comments

Show HN: Tool that simulates how visitors psychologically experience websites

https://human-psychology-simulator.thequantumgrove.io/
1•HPSimulator•36m ago•0 comments

Scholze: "For me, mathematics started with Grothendieck"

https://old.reddit.com/r/math/comments/1rl6yyf/scholze_for_me_mathematics_started_with/
1•iNic•38m ago•0 comments

How to Build a Personal Intelligence Agency

https://www.operator.io/blog/build-a-personal-intelligence-agency
1•david_shi•38m ago•0 comments

Show HN: Mt – Knowledge graph with spaced repetition

https://github.com/odosui/mt
1•yanis_t•40m ago•0 comments

Ask HN: For solopreneurs – how to you solve architecture?

1•rkuodys•41m ago•0 comments

Show HN: Utter, a free local dictation and meeting notes app for Mac and iPhone

https://utter.to/
2•hubab•42m ago•0 comments

"I'm obviously taking a risk here by advertising emoji directly."

https://unsung.aresluna.org/im-obviously-taking-a-risk-here-by-advertising-emoji-directly/
2•tobr•51m ago•0 comments

C++ Performance Improvements in MSVC Build Tools v14.51

https://devblogs.microsoft.com/cppblog/c-performance-improvements-in-msvc-build-tools-v14-51/
1•pjmlp•52m ago•0 comments

Ladybird browser update (February 2026) [video]

https://www.youtube.com/watch?v=Y3tteHSrJlY
3•radikalerludwig•53m ago•1 comments

JSR: The open-source package registry for modern JavaScript and TypeScript

https://jsr.io/
1•maxloh•57m ago•0 comments

DTOs at the Speed of Plain PHP

https://www.dereuromark.de/2026/03/02/dtos-at-the-speed-of-plain-php/
1•that_guy_iain•57m ago•0 comments

Show HN: I measured my context switching by scanning Git commits

https://github.com/MuhammadBaibarsZainUlAbideen/context-tracker
1•muhammadbaibars•57m ago•1 comments

Show HN: Introducing Kite AI Agent: Conversational Operations for Kubernetes

https://github.com/kite-org/kite/discussions/409
1•xdasf•58m ago•0 comments

Online harassment is entering its AI era

https://www.technologyreview.com/2026/03/05/1133962/online-harassment-is-entering-its-ai-era/
1•joozio•58m ago•0 comments