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?

Cloudflare CEO threatens the Winter Olympics after Italy slugs it with a fine

https://www.theregister.com/2026/01/12/cloudflare_vs_italy/
1•beardyw•1m ago•0 comments

Ideas are cheap, execution is cheaper

https://davekiss.com/blog/ideas-are-cheap-execution-is-cheaper/
1•grncdr•1m ago•0 comments

The great calculator debate: Educators disagree over their place in the classro

https://www.csmonitor.com/1986/0509/dcalc-f.html
1•todsacerdoti•6m ago•0 comments

SoleKey – A password manager with no PIN recovery, by design

https://play.google.com/store/apps/details?id=com.mdr.yapm&hl=en_US
1•ping_pundit•7m ago•1 comments

Show HN: I built a tool to visualize the Peter Thiel stock portfolio (13F data)

https://www.13radar.com/guru/peter-thiel
1•PanicSellGuru•14m ago•0 comments

Exasol Personal – Democratizing Big Data Analytics

https://www.exasol.com/blog/introducing-exasol-personal/
1•astigsen•17m ago•0 comments

Most US Gen Zers and millennials listen to about three hours of AI music a week

https://sherwood.news/markets/morgan-stanley-most-gen-zers-and-millennials-in-the-us-listen-to-ab...
1•croes•21m ago•1 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•dvorka•29m ago•0 comments

I reverse engineered Ann Arbor's parking ticket system and built a live map

https://ammarateya.com/a2-parking/
2•ateya•30m ago•1 comments

The ESP32-C3 Super Mini Scam [video]

https://www.youtube.com/watch?v=ZMnSjpFgwdQ
2•josephcsible•32m ago•1 comments

HTGS – HTML Online Editor

https://htgspro.xyz/
1•MopAmine•33m ago•0 comments

Golden girl: Rose Byrne's Globes win maps the road to Oscar glory

https://www.smh.com.au/culture/movies/rose-byrne-golden-globes-winners-2026-oscar-win-best-actres...
1•keepamovin•33m ago•0 comments

AI Can Code (But It Doesn't Care About Quality)

https://blog.discourse.org/2026/01/ai-can-code-but-it-doesnt-care-about-quality/
1•mjrbrennan•37m ago•0 comments

A product that helps developers with marketing tools

https://amplift.ai/
1•gaygum102•37m ago•1 comments

UK Prime Minister Starmer seeks support for international X ban

https://www.euractiv.com/news/uk-prime-minister-starmer-seeks-support-for-international-x-ban/
3•saubeidl•39m ago•4 comments

WhatsApp is untrustable

https://toki.la/posts/whatsapp
4•purglet•41m ago•0 comments

Common misunderstandings about large software companies

https://philipotoole.com/common-misunderstandings-about-large-software-companies/
1•otoolep•42m ago•0 comments

The Emacs Widget Library: A Critique and Case Study

https://www.d12frosted.io/posts/2025-11-26-emacs-widget-library
1•whacked_new•43m ago•0 comments

The liquid air alternative to fossil fuels

https://www.bbc.com/future/article/20251009-the-liquid-air-alternative-to-fossil-fuels
1•otoolep•44m ago•0 comments

DroPE: Extending the Context of LLMs by Dropping Their Positional Embeddings

https://pub.sakana.ai/DroPE/
1•hardmaru•44m ago•0 comments

Roman villa found under popular park dubbed town's 'Pompeii'

https://www.bbc.com/news/articles/cgk8j1gkxelo
1•defrost•51m ago•0 comments

Ask HN: Any active databases / systems paper reading group?

1•dockerd•54m ago•1 comments

AI in RollerCoaster Tycoon

https://labs.ramp.com/rct
1•robbiet480•1h ago•0 comments

Show HN: CKEditor 5 Symfony Integration

https://github.com/Mati365/ckeditor5-symfony
1•mati365•1h ago•0 comments

World Age for beginners: one way to compile a dynamic language

https://discourse.julialang.org/t/world-age-for-beginners-one-way-to-compile-a-dynamic-language/1...
1•anewhnaccount2•1h ago•0 comments

Show HN: 3D Visualizing YC Advice

https://github.com/akshay326/quote-viz
1•akshay326•1h ago•0 comments

Noise sensitivity disrupts the mind, brain and body

https://www.bbc.com/future/article/20250804-inside-the-brains-of-noise-sensitive-people
1•rock_artist•1h ago•0 comments

Your problem with Vim is that you don't grok vi.

https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim
1•chanana•1h ago•0 comments

The Map Is Not the Territory: The Agent-Tool Trust Boundary

https://niyikiza.com/posts/map-territory/
2•niyikiza•1h ago•0 comments

If you want to plan your dev projects faster, use this tool

https://getfrostbyte.dev/
3•Skyfall106•1h ago•0 comments