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?

Silicon Valley has much to learn from the spreadsheet jockeys it despises

https://www.economist.com/business/2026/06/24/silicon-valley-has-much-to-learn-from-the-spreadshe...
1•1vuio0pswjnm7•1m ago•0 comments

GPS Satellites Tracker

https://www.gps-satellites.com/
1•ohjeez•5m ago•0 comments

HackMate – Automate the OpenCore Hackintosh USB Setup from Linux/Windows/macOS

https://github.com/riftaway7-code/hackmate
1•hackmateapp•6m ago•0 comments

jQuery 4.0 Performance

https://www.mida.so/blog/jquery-is-slow
1•okozzie•7m ago•0 comments

Show HN: Claude-CLI – Run Claude Code in a throwaway Docker container

https://github.com/shirozuki/claude-cli
1•shirozuki•13m ago•0 comments

Show HN: Starglyphs - A constellation puzzle game based on Euler paths

https://starglyphs.com
1•telman17•14m ago•0 comments

YimbyTown '26 – The National Pro-Housing Conference

https://yimby.town/
1•JumpCrisscross•16m ago•0 comments

Hyperphantasia

https://en.wikipedia.org/wiki/Hyperphantasia
3•cl3misch•20m ago•0 comments

Michigan spent $1.8B and only created 602 jobs

https://www.msn.com/en-us/money/general/michigan-spent-1-8-billion-and-only-created-602-jobs/ar-A...
12•littlexsparkee•20m ago•1 comments

Noise as Information and Information as Noise

https://unsung.aresluna.org/noise-as-information-and-information-as-noise/
2•frizlab•20m ago•0 comments

The AI Industry as You Know It Died Today

https://www.thealgorithmicbridge.com/p/the-ai-industry-as-you-know-it-died
6•ethagnawl•21m ago•0 comments

Clean Code – Critical Analysis

https://bugzmanov.github.io/cleancode-critique/
2•bmacho•22m ago•0 comments

US Army gives chaplains 90 days to remove rank insignia

https://www.militarytimes.com/news/your-military/2026/06/26/us-army-gives-chaplains-90-days-to-re...
5•Jimmc414•24m ago•1 comments

Why Carbon Capture Can't Conceivably Solve Climate Change

https://projects.propublica.org/why-carbon-capture-cant-solve-climate-change/
5•wstrange•25m ago•3 comments

Smart Link – Free link shortener with AI analytics, A/B testing and QR codes

https://www.by-smartlink.com/
1•smartlink30•26m ago•0 comments

Eugen Rochko – My disappointment is immeasurable, and my day is ruined

https://mastodon.social/@Gargron/116824070810525978
4•backlit4034•26m ago•1 comments

German Button Maker Searched Rivers of American Midwest for Valuable Shells

https://www.smithsonianmag.com/smithsonian-institution/how-one-german-button-maker-searched-the-r...
3•bookofjoe•26m ago•0 comments

GLP-1 drugs led to weight loss and reversed depression-like behavior in mice

https://www.psychologytoday.com/au/blog/mood-by-microbe/202606/what-ozempic-does-to-the-gut-brain...
15•randycupertino•30m ago•0 comments

XPI Release

https://www.xpi.lol/
2•johnnsellers•31m ago•0 comments

MobileGuard: A Mobile-Native Governance Framework for Agentic AI

https://zenodo.org/records/20970167
1•jsingh2525•32m ago•0 comments

Pakistan's solar miracle – how the hell did they do it?

https://www.thenewworld.co.uk/jan-rosenow-pakistans-solar-miracle-how-the-hell-did-they-do-it/
2•coloneltcb•32m ago•0 comments

Show HN: Autonomous CAD design and OpenFOAM optimization loop using local LLMs

https://github.com/ostenjap/LLM-Agent-generated-Quadcopter-Prop
1•ostenjap•36m ago•0 comments

The Harm in Hate Speech Laws

https://wysr.substack.com/p/the-harm-in-hate-speech-laws
2•paulpauper•36m ago•0 comments

Enhancing X11 Application Security with LXC

https://dobrowolski.dev/article/enhancing-x11-application-security-with-lxc/
2•shirozuki•37m ago•0 comments

How Claude Code and Codex Sandbox Untrusted Code

https://medium.com/@Koukyosyumei/how-claude-code-and-codex-sandbox-untrusted-code-ba39b493046a
2•syumei•39m ago•1 comments

Pkgxray

https://github.com/adamsjack711-ux/pkgxray
1•jadamsl•40m ago•0 comments

Peppa Pig studio wants to clone child actors' voices with AI indefinitely

https://www.gadgetreview.com/peppa-pigs-ai-voice-clause-draws-nearly-1000-industry-objections
5•yayitswei•41m ago•1 comments

Show HN: A benchmark for the failure modes of agent memory

https://github.com/Kausha3/agent-memory-bench
1•Pankhi123•42m ago•0 comments

Sony Drops Studio Canal Movies from PS Store

https://www.playstation.com/en-gb/legal/psvideocontent/
1•tau255•43m ago•0 comments

What Happens When AI Agents Refuse to Work Until They're Paid

https://blog.owulveryck.info/2026/06/25/from-isolated-agents-to-agentic-mesh-orchestrating-sdlc-w...
3•owulveryck•50m ago•0 comments