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•6mo 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•6mo 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?

Trump Cut Europe Out of Ukraine Talks

https://www.nytimes.com/2025/11/27/world/europe/europe-ukraine-trump.html
1•maxloh•16s ago•0 comments

Who made Златенция? Throw steps at me. Or invite me. Pls

1•iloveurcelsnuf•6m ago•0 comments

Modern Developer Tools as Attack Surfaces: Lessons from Shai-Hulud

https://sitezwin.com/posts/2025-11-29-sha-hulud-the-second-coming-encouter/
1•meel-hd•13m ago•0 comments

Damage at Baikonur after Soyuz launch: Russia can't send people to space

https://unn.ua/en/news/damage-at-baikonur-after-soyuz-launch-russia-temporarily-lost-the-ability-...
1•cryptoz•15m ago•0 comments

Intelligence is too high-dimensional for any low-dimensional narrative

https://mathstodon.xyz/@tao/115620261936846090
1•gmays•17m ago•1 comments

20/80

https://blog.greg.technology/2025/11/27/2080.html
1•gregsadetsky•26m ago•0 comments

The Supreme Court Is About to Hear a Case That Could Rewrite Internet Access

https://slate.com/news-and-politics/2025/11/supreme-court-sony-cox-copryight-internet-case.html
3•anthonyu•31m ago•1 comments

Show HN: Generate Sheet Music Using AI (Scribe)

https://scribe.rifflabs.io
1•hwittenborn•32m ago•0 comments

Tesla looks to reset strategy amid sluggish India sales

https://www.bbc.com/news/articles/cdrn00pn1m7o
1•breve•38m ago•0 comments

Chumbox (Advertising)

https://en.wikipedia.org/wiki/Chumbox
1•rickcarlino•38m ago•0 comments

Large Type Pieces.txt

https://github.com/PhMajerus/Documents/blob/main/HowTos/HowTo%20Large%20Type%20Pieces.txt
1•cardamomo•39m ago•0 comments

Every mathematician has only a few tricks

https://mathoverflow.net/questions/363119/every-mathematician-has-only-a-few-tricks
2•nill0•41m ago•0 comments

Plotting a Northrop B2 Spirit

https://youtu.be/TSQWZF4zdN4
1•russelltaylor05•44m ago•0 comments

The Risky Movement to Make America Nuclear Again

https://nuclear-news.net/2025/11/04/1-a-the-risky-movement-to-make-america-nuclear-again/
1•pmoriarty•46m ago•0 comments

Rocketwerkz CEO says frameworks, not engines, are the future of game development

https://www.gamedeveloper.com/programming/rocketwerkz-ceo-predicts-frameworks-not-engines-will-be...
3•jibe•48m ago•0 comments

Mongolian Script

https://en.wikipedia.org/wiki/Mongolian_script
2•Razengan•53m ago•0 comments

The Impossible Prompt That's Easy for Humans

https://teodordyakov.github.io/the-impossible-promt/
2•ssdsa•59m ago•1 comments

Why GitHub's War on Toasts Is Bad News for Accessibility

https://medium.com/offmessageorg/why-githubs-war-on-toasts-is-bad-news-for-accessibility-a88ddbad...
2•bochoh•1h ago•0 comments

Beijing's prison silences Chinese journalist and lawyer of Covid19 in Wuhan fame

https://www.bushcenter.org/publications/the-struggle-for-freedom-beijings-revolving-prison-doors-...
3•737min•1h ago•0 comments

Show HN: MCP for finding the better NPM dependencies

https://web-production-0200a.up.railway.app
1•jsafaiyeh•1h ago•0 comments

Show HN: Native macOS timeout (Rust) – handles system sleep, no coreutils

https://github.com/denispol/darwin-timeout
1•denispol•1h ago•0 comments

Show HN: TimeProof – Timelapse your computer based workday! (MacOS)

https://apps.apple.com/us/app/timeproof/id6751671026?mt=12
1•Viper117•1h ago•1 comments

Infosys co-founder once again calls for longer than 70-hour weeks – and no, he's

https://www.techradar.com/pro/infosys-co-founder-once-again-calls-for-longer-than-70-hour-weeks-a...
12•sys_64738•1h ago•1 comments

Tesla struggles to course correct from sales skid

https://www.reuters.com/business/autos-transportation/tesla-struggles-course-correct-sales-skid-2...
4•breve•1h ago•1 comments

Show HN: Watsn.ai – Bullshit Detector

https://watsn.ai/
1•flx1012•1h ago•0 comments

Walrus: Distributed message queue written in Rust

1•peterjkl•1h ago•1 comments

How Workplace Fashion Has Changed over the Decades

https://www.wsj.com/style/fashion/office-attire-changes-history-e6e9147b
2•fortran77•1h ago•1 comments

Show HN: GitHub Activity Analytics Powered by ClickHouse

https://velocity.clickhouse.com/#org=ClickHouse&metric=all_activity&range=all&grouping=auto&alexe...
1•saisrirampur•1h ago•1 comments

AI satisfies formal structural subjectivity in the S₀ protocol

https://github.com/jengbeng/ai-structural-subject
1•jengbeng•1h ago•1 comments

Google CEO Pushes 'Vibe Coding' – But Real Developers Know It's Not Magic

https://www.interviewquery.com/p/ai-coding-vibe-coding-explained
2•birdculture•1h ago•0 comments