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?

Naval is still speaking from within the dream

https://twitter.com/_The_Prophet__/status/1989931524062679204
2•salkahfi•11m ago•0 comments

Shitposting is a blessed epistemic mode

https://psychotechnology.substack.com/p/shitposting-is-a-blessed-epistemic
2•surprisetalk•21m ago•0 comments

A Formula for Round Numbers

https://signoregalilei.com/2025/11/02/a-formula-for-round-numbers/
1•surprisetalk•21m ago•0 comments

Concrete Shipbuilding – Argentina

https://thecretefleet.com/blog/f/concrete-shipbuilding-–-argentina
1•surprisetalk•21m ago•0 comments

How to Brew Solar Powered Coffee

https://solar.lowtechmagazine.com/2025/11/how-to-brew-solar-powered-coffee/
1•surprisetalk•21m ago•0 comments

Show HN: WGE – High-Performance WAF Library, 4x Faster Than ModSecurity

https://github.com/stone-rhino/wge
1•zhouyujt•22m ago•0 comments

'CEO is my blood type': Chilling new novel nails narcissistic tech culture

https://theconversation.com/ceo-is-my-blood-type-a-chilling-new-novel-nails-narcissistic-tech-cul...
2•defrost•24m ago•0 comments

Blowing ChatGPT's mind. Is this just sycophancy? Or a realistic assessment?

https://chatgpt.com/share/691a9edc-b5b8-800a-99a3-c32d9abccf68
1•EGreg•27m ago•0 comments

The Shutdown of Usa.i.d. Has Killed Thousands

https://www.newyorker.com/culture/the-new-yorker-documentary/the-shutdown-of-usaid-has-already-ki...
9•Anon84•27m ago•5 comments

Acoustic Radiometer spins in 130dB sound [video]

https://www.youtube.com/watch?v=lAeJvZfVLbE
1•TriangleEdge•28m ago•1 comments

Show HN: That's how - Donald Trump is

https://bestkundli.com/profile/6918428c7358c72636b94a2e
1•bestkundli•29m ago•0 comments

Can Fidelity keep its grip on America's investments?

https://www.ft.com/content/2630f80f-12f0-468f-88f8-49a9766a96ef
3•kamaraju•30m ago•0 comments

A first-principles model for replacing income tax in an AI-driven economy

https://github.com/publicusagetax/PUT-Monolith-v2
2•publicusagetax•31m ago•0 comments

Show HN: Pyloid: Electron for Python • Modern Web-based desktop app framework

https://pyloid.com/
1•terran9•39m ago•0 comments

DevAI: Beyond Hype and Denial

https://www.ivankusalic.com/realistic-DevAI/
1•shayac2•40m ago•0 comments

Building a Simple Search Engine That Works

https://karboosx.net/post/4eZxhBon/building-a-simple-search-engine-that-actually-works
2•freediver•40m ago•0 comments

The Modern Stack on AWS

https://cloudposse.com/blog/modern-stack-aws-terraform-github-actions-open-source
3•mooreds•41m ago•0 comments

How Google's DeepMind tool is 'more quickly' forecasting hurricane behavior

https://www.theguardian.com/technology/2025/nov/16/google-deepmind-hurricane-forecast
1•a_w•41m ago•0 comments

Illumine Lingao

https://en.wikipedia.org/wiki/Illumine_Lingao
1•mooreds•41m ago•0 comments

Is It a Bad Idea to Exercise Before Bed?

https://www.nytimes.com/2025/11/11/well/move/exercise-before-sleeping.html
2•mooreds•42m ago•0 comments

Digital echoes: open bus behavior on the compact Macintosh

https://thomasw.dev/post/compact-mac-openbus/
1•zdw•47m ago•0 comments

Fact check: Did an AI country song reach No. 1 on Billboard?

https://mashable.com/article/ai-country-song-broken-rust-billboard-chart
2•thunderbong•57m ago•0 comments

Shadows / Mathematical Etudes

https://en.etudes.ru/etudes/shadows/
1•georgecmu•57m ago•0 comments

His Jeans Are Gigantic. His Internet Fame Is Too

https://www.nytimes.com/2025/11/16/style/jeans-carter-anderson-indigo-invitational.html
1•JojoFatsani•1h ago•0 comments

Show HN: 15,000 MCP servers to enhance Agent capabilities

https://dxt.so
1•niliu123•1h ago•0 comments

Show HN: Triggla for Stripe (post-purchase and trial-rescue emails, 60s setup)

https://triggla.com/
1•taylor_jj•1h ago•0 comments

Speaking more than one language may help the brain stay younger

https://phys.org/news/2025-11-language-brain-stay-younger.html
2•pseudolus•1h ago•0 comments

FXMacroData – Real-time FOREX macroeconomic data API for developers

https://fxmacrodata.com/
1•roberttidball•1h ago•1 comments

AI's Impact on Mental Health

https://cacm.acm.org/news/ais-impact-on-mental-health/
1•pseudolus•1h ago•0 comments

Tektronix equipment has been used in many movies and shows

https://vintagetek.org/tektronix-in-movies-shows/
2•stmw•1h ago•0 comments