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?

Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

https://pbxscience.com/ubuntu-26-04-ends-46-years-of-silent-sudo-passwords/
1•akersten•1m ago•0 comments

Israel and Weapons of Mass Destruction

https://en.wikipedia.org/wiki/Israel_and_weapons_of_mass_destruction
1•handfuloflight•3m ago•0 comments

Show HN: I built a task manager that tracks estimated vs. actual time

https://demo.scopedin.app/demo-start
1•cwharris365•5m ago•0 comments

BIO – The Bao I/O Co-Processor

https://www.crowdsupply.com/baochip/dabao/updates/bio-the-bao-i-o-co-processor
1•monocasa•15m ago•0 comments

I Think We're A Clone Now, a parody made within Apple (1994) [video]

https://www.youtube.com/watch?v=PnCqNH7V9R0
1•Austin_Conlon•17m ago•0 comments

"LISP: Programming and Proving" by John McCarthy and Carolyn Talcott (1980)

https://archive.org/details/lisp-programming-and-proving
1•mself•23m ago•1 comments

Jurors wade through daunting evidence in high-stakes Meta trial re: social media

https://apnews.com/article/meta-new-mexico-lawsuit-a7374a4dbf19c885f0239431b2341e60
2•1vuio0pswjnm7•23m ago•0 comments

Why do we need apps like cursor?

1•amanhij•25m ago•1 comments

Ask HN: When Will AI Disappear?

3•roschdal•26m ago•2 comments

Jury finds Elon Musk misled investors during Twitter purchase

https://www.latimes.com/business/story/2026-03-20/jury-finds-elon-musk-misled-investors-during-tw...
3•1vuio0pswjnm7•27m ago•0 comments

Sit on Your Ass Web Development (2025)

https://blog.jim-nielsen.com/2025/sit-on-your-ass-web-dev/
1•fagnerbrack•29m ago•0 comments

Why Do Humanoid Robots Still Struggle with the Small Stuff?

https://www.quantamagazine.org/why-do-humanoid-robots-still-struggle-with-the-small-stuff-20260313/
1•nsoonhui•30m ago•0 comments

Built some free agents They've helped my business a lot

https://marketplace-weld-alpha.vercel.app
1•Yungdaddi•30m ago•0 comments

Cyber actors linked to Russia targeting users of messaging apps, FBI says

https://www.reuters.com/technology/cyber-actors-linked-russia-are-targeting-users-commercial-mess...
1•petethomas•35m ago•0 comments

Show HN: React-container-kit – named React providers and provider composition

https://github.com/harveyrandall/react-container-kit
1•harveyrandall•37m ago•0 comments

Tokens may soon drive the AI economy

https://www.ft.com/content/b7f681a5-fef8-4156-bbfa-88f9c93e08b4
2•paulpauper•44m ago•0 comments

The 'Seinfeld' Theory of Fiction

https://www.theatlantic.com/books/2026/03/down-time-andrew-martin-pandemic-novel-review/686455/
1•paulpauper•45m ago•0 comments

Gangs of Karachi

https://harpers.org/archive/2015/09/gangs-of-karachi/
2•ajax33•46m ago•0 comments

Bitfield Pitfalls

http://www.os2museum.com/wp/bitfield-pitfalls/
1•userbinator•47m ago•0 comments

Departure Mono Font

https://departuremono.com/
2•iamwil•48m ago•0 comments

Moonshot AI Keynote on Kimi 2.5 at Nvidia GTC

https://twitter.com/kimi_moonshot/status/2035011542115393973
1•curtsmith•48m ago•0 comments

The Trillion Dollar Race to Automate Our Lives

https://www.wsj.com/tech/ai/claude-code-cursor-codex-vibe-coding-52750531
5•fortran77•50m ago•3 comments

Principles and Practice of Deep Representation Learning

https://ma-lab-berkeley.github.io/deep-representation-learning-book/index.html
1•vinhnx•52m ago•0 comments

Windows 11's Start menu was built using React – now switching to native WinUI

https://www.windowscentral.com/microsoft/windows-11/windows-11-major-improvements-announced-movab...
12•steviey19•58m ago•10 comments

Who Tried to Put Age Verification into Linux (and Why?)

https://www.sambent.com/the-engineer-who-tried-to-put-age-verification-into-linux-5/
5•felineflock•1h ago•1 comments

Show HN: Agent-password – a local macOS password manager for agent workflows

https://github.com/tartavull/agent-password
2•tartavull•1h ago•1 comments

Personality Self-Replicators

https://www.lesswrong.com/posts/fGpQ4cmWsXo2WWeyn
1•causalityltd•1h ago•1 comments

Constellation Draw

https://neal.fun/constellation-draw/
1•vismit2000•1h ago•0 comments

The Unusual Billboard Strategy That Got Us Our First Contract

https://twitter.com/gaurab/status/2034985493574668414
1•dsr12•1h ago•0 comments

CopySpeak – A lightweight tool for quick AI text-to-speech

https://github.com/ilyaizen/CopySpeak
4•ilyaizen•1h ago•0 comments