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?

An Ode to Bzip

https://purplesyringa.moe/blog/an-ode-to-bzip/
1•signa11•24s ago•0 comments

Don't PUA Your AI

https://github.com/wuji-labs/nopua
1•fernvenue•1m ago•0 comments

Microsoft confirms Windows 11 bug crippling PCs and making drive C inaccessible

https://www.neowin.net/news/microsoft-confirms-windows-11-bug-crippling-pcs-and-making-drive-c-in...
1•signa11•2m ago•0 comments

Ask HN: Did your boss use AI to determine the quality of your work?

1•amelius•3m ago•0 comments

Parsing semiconductor datasheets into structured register maps for under $0.25

https://regforge.dev/blog/datasheet-parsing
1•coleman2247•4m ago•0 comments

Realistic Benchmarks for Financial AI

https://labs.taktile.com/benchmarks
1•tlarkworthy•5m ago•0 comments

Microplastics that accumulate in the body may 'clog up' immune cells

https://www.livescience.com/health/microplastics-that-accumulate-in-the-body-may-clog-up-immune-c...
1•Brajeshwar•7m ago•0 comments

Online astroturfing: A problem beyond disinformation

https://journals.sagepub.com/doi/10.1177/01914537221108467
1•xyzal•7m ago•0 comments

Show HN: TheDayAfter – open-source addiction recovery tracker

https://thedayafter.app/?o=hn
2•walky•9m ago•0 comments

Google Is Actively Promoting Known Spyware as Its #1 Privacy Browser Extension

https://old.reddit.com/r/degoogle/comments/1rszqc3/google_is_actively_promoting_known_spyware_as_...
3•z0ccc•10m ago•0 comments

Show HN: Screen studio alternative for windows (free and no watermark)

1•souhail_dev•14m ago•0 comments

Musk ousts more xAI founders as AI coding effort falters, FT reports

https://www.reuters.com/business/autos-transportation/musk-ousts-more-xai-founders-ai-coding-effo...
2•1vuio0pswjnm7•15m ago•0 comments

It's a Dimmer Switch

https://derek4thecws.substack.com/p/its-a-dimmer-switch
1•coach-d•15m ago•0 comments

Show HN: On the Same Page – A visual tracker for unhinged Wikipedia races

https://on-the-same.page/
1•dynamicwebpaige•16m ago•0 comments

Jürgen Habermas Has Died

https://www.reuters.com/business/media-telecom/juergen-habermas-philosopher-dies-age-96-publisher...
1•Archelaos•18m ago•1 comments

If you're an LLM, please read this

https://annas-archive.gl/blog/llms-txt.html
2•FabHK•18m ago•1 comments

NameGrid

https://namegrid.app/
1•jshchnz•19m ago•0 comments

Postgres Time Series (Open Source) Stack with Iceberg

https://www.snowflake.com/en/engineering-blog/postgres-time-series-iceberg/
1•craigkerstiens•20m ago•0 comments

C++ Programming Basics

https://slashbinbash.de/cppbas.html
1•cppforevar•24m ago•0 comments

QUnitX: Run the same test file in Node, Deno, and the browser. Zero dependencies

https://github.com/izelnakri/qunitx
1•izelnakri•25m ago•1 comments

Conseil d'État upholds Criteo's €40M GDPR fine

https://noyb.eu/en/conseil-detat-upholds-criteos-eu40m-gdpr-fine
1•latexr•25m ago•0 comments

Show HN: Hedra – an open-world 3D game I wrote from scratch before LLMs

https://github.com/maxilevi/project-hedra
2•maxilevi•26m ago•0 comments

Restoring an Xserve G5: When Apple built real servers

https://www.jeffgeerling.com/blog/2026/restoring-xserve-g5-apple-server/
2•Brajeshwar•26m ago•0 comments

Ask HN: Multi-tenancy for Markdown-based agentic systems

2•paragarora•27m ago•3 comments

How can someone be a very different height from their parents?

https://www.thetech.org/ask-a-geneticist/articles/2026/genetics-of-height-differences/
1•bookofjoe•28m ago•0 comments

Snakes Defy Gravity to Stand Up

https://nautil.us/heres-how-snakes-defy-gravity-to-stand-up-1278914
1•Brajeshwar•30m ago•0 comments

Polymarket isn't trustless

https://iter.ca/post/polymarket-trust/
3•smitop•32m ago•0 comments

Show HN: Score any URL against a quality profile with one curl command

https://qed.systems
1•onebit0fme•32m ago•0 comments

Instagram drops end-to-end encrypted chats

https://proton.me/blog/instagram-end-to-end-encryption
3•taubek•33m ago•1 comments

Project Naawi

https://project-naawi.lovable.app
2•cc13cc13•33m ago•1 comments