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•1y 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•1y 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?

Git: How to Undo a Commit Without Undoing Your Career

https://fagnerbrack.com/git-how-to-undo-a-commit-without-undoing-your-career-de6b68694845
1•fagnerbrack•45s ago•0 comments

Show HN: Talk to your Oura Ring data through Claude

https://github.com/FelixWag/oura-ring-mcp
1•FelixWag•56s ago•0 comments

eBay rejects GameStop's $56B takeover bid

https://www.cnbc.com/2026/05/12/ebay-rejects-gamestops-takeover-bid.html
1•pseudolus•1m ago•0 comments

Agent Directory

https://www.tryrankly.com/agent-directory
1•rankly_admin•2m ago•1 comments

Coursera and Udemy are now one company

https://blog.coursera.org/coursera-and-udemy-are-now-one-company-creating-the-worlds-most-compreh...
1•Anon84•3m ago•0 comments

Show HN: StabilityPulse – Are you Zoom call ready

https://stabilitypulse.com/
1•sudhir0112•4m ago•0 comments

Language Models Can Autonomously Hack and Self-Replicate [pdf]

https://palisaderesearch.org/assets/reports/self-replication.pdf
1•pseudolus•4m ago•0 comments

InvoiceZap – invoicing for freelancers with automated payment reminders

https://www.invoicezap.eu/
1•SamuelSeyum•5m ago•0 comments

eBay formally rejects GameStop offer

https://www.reuters.com/sustainability/sustainable-finance-reporting/ebay-rejects-gamestops-audac...
2•bhouston•6m ago•0 comments

Kiji Proxy: Detect/mask private infos in requests to AI services

https://github.com/dataiku/kiji-proxy
1•hivacruz•7m ago•0 comments

Yabasic (Yet Another Basic)

https://en.wikipedia.org/wiki/Yabasic
3•sarreph•7m ago•0 comments

AI Is Starting to Build Better AI – Recursive self-improvement is emerging

https://spectrum.ieee.org/recursive-self-improvement
2•pseudolus•7m ago•1 comments

Claude Skills for Cybersecurity

https://github.com/trailofbits/skills
2•dheerajmp•9m ago•0 comments

I built a business that lets me live on the beach full time

https://www.expatsoftware.com/Articles/guy-on-the-beach-with-a-laptop.html
2•chistev•10m ago•0 comments

Show HN: Tickstem – Python SDK for cron, uptime and heartbeat monitoring

https://github.com/tickstem/python
2•m_barsukou•16m ago•0 comments

SpaceX and Anthropic, xAI's Two Companies, Elon Musk and SpaceXAI's Future

https://stratechery.com/2026/spacex-and-anthropic-xais-two-companies-elon-musk-and-spacexais-future/
2•swolpers•21m ago•0 comments

Modern Lab Experiments

https://wanda.fiu.edu/boeglinw/courses/Modern_lab_manual3/index.html
2•nill0•31m ago•0 comments

Privatemode.ai – AI provider with confidential computing

https://www.privatemode.ai/
2•pelzatessa•31m ago•1 comments

Lil Snack

https://www.lilsnack.com/
2•delian66•33m ago•0 comments

Too Much Type

https://toomuchtype.com/
3•marksully•33m ago•0 comments

Panel on Language Design (PG, John Maeda, Jonathan Rees, G. Steele) (2001) [video]

https://www.youtube.com/watch?v=agw-wlHGi0E
2•kerim-ca•37m ago•1 comments

Appendix: Mental Health for the Engineering Student

https://ariadacapo.net/articles/2026-05-10-appendix-a7-mental-health-for-the-engineering-student/
2•2DcAf•41m ago•0 comments

David Weinberger interviews Paul Graham about 'Taste for Makers' (2006) [video]

https://www.youtube.com/watch?v=s2DkhL_Bypo
2•kerim-ca•45m ago•1 comments

2.21B Won Frozen in Virtual Currency Shutdowns

https://www.chosun.com/english/market-money-en/2026/05/12/A24FVGP2G5HD3CCDX23UHRWFQY/
3•01-_-•46m ago•0 comments

Unitree GD01: China's $537k rideable transformer robot is now in production

https://gagadget.com/en/709729-unitree-gd01-chinas-537k-rideable-transformer-robot-is-now-in-prod...
13•rguiscard•51m ago•1 comments

I'm Making Strandfall, a Solarpunk Orienteering Larp

https://mssv.net/2026/04/29/im-making-strandfall-a-solarpunk-orienteering-larp/
2•adrianhon•52m ago•0 comments

Canva's Magic Layers AI Changed "Palestine" to "Ukraine" in User Designs

https://gizmodo.com/canva-admits-its-ai-tool-removed-palestine-from-designs-apologizes-for-any-di...
8•lebowska•56m ago•0 comments

Texas Attor­ney Gen­er­al Sues Net­flix for Spy­ing on Kids and Con­sumers

https://www.texasattorneygeneral.gov/news/releases/attorney-general-ken-paxton-sues-netflix-spyin...
2•frb•1h ago•0 comments

Teen Boys and Young Men Are Injecting Peptides in Search of Perfection

https://www.wsj.com/health/wellness/boys-peptides-stacks-looksmaxxing-trevor-larcom-835e58cd
4•petethomas•1h ago•1 comments

Ducklake-SDK: Use DuckLake from Python or Rust without going through DuckDB

https://github.com/borchero/ducklake-sdk
2•borchero•1h ago•0 comments