frontpage.
newsnewestaskshowjobs

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?

GitHub Actions accepts invalid YAML

https://yossarian.net/til/post/github-actions-accepts-invalid-yaml/
1•birdculture•1m ago•0 comments

The Power of GraphQL, Without GraphQL

https://cobalt27.dev/
2•Shoetp•5m ago•0 comments

Beyond the Theorem Economy (David Bessis)

https://davidbessis.substack.com/p/beyond-the-theorem-economy
1•jlev1•7m ago•1 comments

OpenAI's Performance Factory keeps ChatGPT fast

https://openai.com/index/how-openai-performance-factory-keeps-chatgpt-fast/
1•gmays•10m ago•0 comments

Release: Roto v0.14.0

https://community.nlnetlabs.nl/t/release-roto-v0-14-0/3511
1•todsacerdoti•12m ago•0 comments

Russia may launch nuclear weapon into orbit as soon as next month

https://arstechnica.com/space/2026/11/russia-may-launch-a-nuclear-armed-satellite-far-sooner-than...
2•hackernj•12m ago•0 comments

State of MetaBrainz 2026

https://blog.metabrainz.org/2026/11/20/state-of-metabrainz-2026/
1•JDups•14m ago•0 comments

Grok Bot Taught My Jev Agent to Play Smash Bros

https://ryanperry.io/post/grok-bot-taught-my-jev-agent-to-play-smash-bros
1•Rperry2174•15m ago•1 comments

DisableBar – Turn Off a Flickering MacBook Pro Touch Bar

https://github.com/Ri4dH/disablebar
1•ri4dh•17m ago•0 comments

I still have a debilitating fear of sea monsters

https://wadapan.substack.com/p/giant-squid-commentary
1•paulpauper•19m ago•0 comments

VisualDrive Server – drop-in replacement for Sharepoint/OneDrive

https://www.axiorema.com/visualdrive-server/
1•chemodax•20m ago•0 comments

California Legislators Passed a Bill Targeting ICE Contractors. Newsom Vetoed It

https://truthout.org/articles/ca-legislators-passed-a-bill-targeting-ice-contractors-newsom-vetoe...
2•paimapi•26m ago•0 comments

Anthropic launches Claude Ship, agents review, fix, & approve code changes now

https://techcrunch.com/2026/11/23/anthropic-launches-claude-ship-letting-ai-agents-review-fix-and...
2•nitroedge•29m ago•2 comments

Short Nvidia Fund Halted After 91% Wipeout

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-11-23-2026/card/short-nvidi...
7•devy•33m ago•0 comments

Jon's Arm Reference will be discontinued on 4 Dec, per request of Arm's legal

https://twitter.com/jonpalmisc/status/2124924098057011629
2•greatgib•33m ago•0 comments

The AI bubble is deflating and that's good news

https://cepr.net/publications/ai-bubble-monitor/#nov232026
3•DeepLogin•34m ago•0 comments

How Big Tech and Corporate America are price-maxing your shopping cart

https://www.wusf.org/economy-business/2026-11-23/how-big-tech-corporate-america-price-maxxing-you...
1•DeepLogin•36m ago•0 comments

Show HN: A React Native math keypad for kids – fractions, exponents, no WebView

https://github.com/rabbithole-school/react-native-math-keypad
1•andyszy•37m ago•0 comments

Smart models probably don't need their own harness

https://micjm.com/blog/harness-gain-vs-model-intelligence/
1•seizethecheese•39m ago•1 comments

LibreOffice 27.2 Alpha 1 Released For Testing

https://www.phoronix.com/news/LibreOffice-27.2-Alpha-1
2•Bender•42m ago•0 comments

Zstandard (zstd) 1.6.0

https://github.com/meta/zstd/releases/tag/v1.6.0
4•petecooper•42m ago•2 comments

TheGitAI Desktop App Is Available on macOS, Windows, and Linux

https://thegit.ai/desktop
2•waximabbax•42m ago•0 comments

Show HN: Tripup – Type words not in a text corpus as fast as you can

https://tripup.me/
1•alex0015•44m ago•0 comments

The AI bubble hasn't burst, but it has significantly deflated

https://www.rnz.co.nz/news/world/2757034/the-ai-bubble-hasn-t-burst-but-it-has-significantly-defl...
5•billybuckwheat•44m ago•2 comments

Hkust 3D Prints a Titanium Alloy That Keeps Hardening

https://3dprinting.com/news/hkust-researchers-3d-print-a-titanium-alloy-that-keeps-hardening-unde...
1•rbanffy•44m ago•0 comments

How I Commissioned Music For My Indie Game

https://landenlove.com/how-i-commissioned-music-for-my-indie-game/
1•LandenLove•46m ago•0 comments

Securing AI agents against intent hijacking with Semantic governance policies

https://developers.googleblog.com/did-the-user-ask-for-this-securing-ai-agents-against-intent-hij...
1•thevilish•46m ago•0 comments

Show HN: Want to play with some algebraic curves?

https://duetosymmetry.com/tool/algebraic-curve-toy/
1•duetosymmetry•50m ago•0 comments

Show HN: Sessions Pro for Codex – two ChatGPT desktop accounts open at once

https://multiplecodex.com/
1•lexmedia•50m ago•0 comments

GoFundMe says donor information was exposed in data breach

https://www.10tv.com/article/news/nation-world/gofundme-data-breach-donor-data-nonprofits/507-6ef...
4•jimt1234•50m ago•0 comments