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?

Show HN: Clinglang – A shorthand language for doctors to write structured cases

https://github.com/ppnpm/clinlang
1•ppnpm•5m ago•0 comments

OpenRCT2 v0.5.1 "Swamp Castle" released Last version to support Windows 7

https://openrct2.io/blog/2026/05/openrct2-v0.5.1-released
1•jandeboevrie•8m ago•0 comments

Guitar Tools – PWA for Scales, Circle of Fifths and More

https://guitar-tools.eejalab.xyz/
1•hannofcart•9m ago•1 comments

Sleuths uncover 100 suspicious images in Thermo Fisher antibody catalogue

https://www.nature.com/articles/d41586-026-01706-2
1•Teever•12m ago•0 comments

Cathy Tie's mission to genetically modify babies

https://www.theguardian.com/science/2026/may/30/there-is-no-way-to-stop-this-biotech-barbie-cathy...
1•skruger•20m ago•0 comments

Boom shakes S Carolina, rattling Columbia and raising questions about the cause

https://www.thestate.com/news/local/environment/article315932620.html
1•thunderbong•28m ago•0 comments

Show HN: I built an Android OS in the browser

https://mobilegym.dev/
1•haozaz•28m ago•0 comments

A Weekend in Claude Design Saves 3 Weeks of Claude Code

https://cashandcache.substack.com/p/the-prototype-tax-how-a-weekend-in
1•binyu•34m ago•0 comments

The 12 Futures of AI

https://medium.com/@butsch_79/the-12-futures-of-ai-a42d67bd9a20
1•andsoitis•36m ago•0 comments

The Biggest Tell That Something Was Written by AI

https://www.theatlantic.com/technology/2026/05/how-to-tell-ai-writing/687345/
4•nlawalker•38m ago•3 comments

Indian court ruling on Google keyword ads could reshape online advertising

https://www.reuters.com/business/media-telecom/indian-court-ruling-google-keyword-ads-could-resha...
1•rustoo•38m ago•0 comments

The next frontier of the luxury airline arms race might be waged in the toilet

https://www.cnn.com/travel/first-class-toilets-emirates-airbus-travel-intl-spc
2•tomodachi94•38m ago•0 comments

Poor sleep linked to rising cancer risk in under-50s

https://www.theguardian.com/society/2026/may/30/poor-sleep-linked-rising-cancer-risk-under-50s
1•andsoitis•43m ago•1 comments

Records Show UC Sharing Data with US Customs and Border Protection

https://www.dailycal.org/news/uc/records-show-uc-sharing-data-with-us-customs-and-border-protecti...
13•computerliker•44m ago•0 comments

Ask HN: What could happen if human beings become obsolete?

3•baddash•53m ago•1 comments

HeavensLive: The Marketplace That Gives You Free Money to Start – No Strings

https://www.heavenslive.com
1•bbenevolence•55m ago•0 comments

Mean Hand

https://portfolio.anna-zhang.com/projects/mean-hand
2•sdrothrock•1h ago•0 comments

Farewell AWS

https://www.adventuresinoss.com/farewell-aws/
2•cafkafk•1h ago•0 comments

An Usable Minimal Programming Language?

https://github.com/las-r/aergia
1•las_r•1h ago•1 comments

Ask HN: Why I have such bad luck?

2•alonsovm44•1h ago•0 comments

Vercel Analytics Alternative When You Outgrow the Free Tier

https://raah.dev/blog/vercel-analytics-alternative
1•Arindam1729•1h ago•0 comments

Show HN: NoTime – a Firefox extension for one-sentence summaries

https://addons.mozilla.org/en-US/firefox/addon/no-time/
1•dh1011•1h ago•1 comments

China's world-beating solar industry is in turmoil

https://economist.com/china/2026/05/26/chinas-world-beating-solar-industry-is-in-turmoil
2•andsoitis•1h ago•1 comments

SpaceX and the 'Enshittification' of Markets

https://www.ft.com/content/f724d500-fd45-4f38-86b8-549b5cae88ba
3•petethomas•1h ago•0 comments

Treasury Sec Bessent says US Government has seized $1B of Iran's crypto

https://twitter.com/bitcoinmagazine/status/2060442288598155762
1•computerliker•1h ago•0 comments

The Orchestration Tax

https://addyosmani.com/blog/orchestration-tax/
1•jnakano89•1h ago•0 comments

PROMPTPurify: 14 MB CPU-only prompt-injection guard (benchmarked vs. OSS guard)

https://github.com/securelayer7/PROMPTPurify
1•sandeep_kamble•1h ago•0 comments

Brazilian court orders restoration of Fordlandia, Henry Ford's Amazon ghost town

https://apnews.com/article/fordlandia-preservation-brazil-amazon-rainforest-henry-ford-370a0e6999...
1•divbzero•1h ago•0 comments

The Muser – Open-source alternative to Suno, runs locally, you own everything

https://github.com/noah-chelednik/the-muser
3•chedai__•1h ago•1 comments

Did DeepSeek v4 suddenly become more expensive?

https://imgur.com/gallery/hMEUsyW
1•thatwasunusual•1h ago•2 comments