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?

Show HN: FluxDown – Free, open-source IDM alternative in Rust and Flutter

https://github.com/zerx-lab/FluxDown
1•zero-lab•37s ago•0 comments

Running Engineering Teams Series

https://yusufaytas.com/series/running-engineering-teams
1•yusufaytas•55s ago•1 comments

Feynman's Garden

https://www.marginalia.nu/log/a_108_feynman_revisited/
1•jimsojim•58s ago•0 comments

Sharded Inference of a 229B-Parameter Moe over the Internet at Interactive Speed

https://twitter.com/c0mputeAI/status/2073150789640421537
1•MrBuddyCasino•12m ago•0 comments

Satoyama

https://en.wikipedia.org/wiki/Satoyama
1•ETH_start•14m ago•0 comments

Teaching AI to Run with the Turbines

https://www.technologyreview.com/2026/07/02/1138433/teaching-ai-to-run-with-the-turbines/
1•joozio•15m ago•0 comments

Will betting on wildfires lead to arson?

https://www.hcn.org/articles/people-are-betting-on-wildfires-should-they/
1•1vuio0pswjnm7•15m ago•0 comments

Show HN: Visual Knowledge Canvas for Learners

https://www.solus.so/
3•allybahaei•17m ago•0 comments

Claude's Criminally Bad Electron Mac App Is an Inside Job

https://daringfireball.net/2026/07/claudes_criminally_bad_mac_app_is_an_inside_job
1•tosh•17m ago•0 comments

Show HN: An AI that brutally rates your cat, and 18 games where your cat plays

https://catz.io
1•muzwalks•21m ago•0 comments

DocHero: PDF Editor and Sign PDF

https://apps.apple.com/us/app/dochero-pdf-editor-sign-pdf/id6781691509
1•suryanshJ•32m ago•0 comments

Fin: A Jellyfin Client for the Terminal

https://tangled.org/tsiry-sandratraina.com/fin
2•nerdypepper•34m ago•0 comments

Scientists decry conference's use of hidden prompts to snare AI peer reviews

https://www.thetransmitter.org/publishing/scientists-decry-conferences-use-of-hidden-prompts-to-s...
1•jruohonen•37m ago•0 comments

Could the next great novel be written by AI?

https://www.theguardian.com/books/ng-interactive/2026/jul/04/future-of-fiction-next-great-novel-a...
1•scandox•42m ago•3 comments

HackathonHub – the control room for hackathons, game jams, and team competitions

https://hackathonhub.xyz/
1•igorthenomad•42m ago•0 comments

Provenance: Proving That Your Code Is Really Yours

https://medium.com/@vektormemory/provenance-proving-that-your-code-is-really-yours-603c09407a97
1•vektormemory•42m ago•1 comments

AI models' values are different from most people's

https://www.economist.com/briefing/2026/06/25/ai-models-values-are-very-different-from-most-peoples
2•Anon84•42m ago•0 comments

We Are Running Companies on Chat Windows and Calling It a Revolution

https://irishtechnews.ie/running-companies-on-chat-windows-calling-it-rev/
3•belkin1•45m ago•0 comments

Jersey Mike's IPO illustrates how bad the AI hype is

https://finance.yahoo.com/technology/ai/articles/jersey-mike-ipo-illustrates-bad-201159743.html
3•cybermango•46m ago•0 comments

Arbitrary code execution breaking sandboxes in KDE Plasma

https://blog.kimiblock.top/2026/07/01/arbitrary-code-execution-in-kde-plasma/index.html
2•birdculture•49m ago•0 comments

BiOptimizers Magnesium Breakthrough Reviews – Truth Check

https://gamma.app/embed/Magnesium-Breakthrough-By-BiOptimizers-Honest-Review-tbe77aupzt7tnrd?mode...
1•prepostseo•53m ago•0 comments

Show HN: AI Coloring Page Generator for printable classroom worksheets

https://aicoloringpagegenerator.org/
1•robot1996•53m ago•0 comments

Show HN: AI Video Detector – check whether a video may be AI-generated

https://aivideodetector.video
1•robot1996•53m ago•0 comments

Dangerously-skip-permissions is the only safe mode

https://www.granola.ai/blog/dangerously-skip-permissions-is-the-only-safe-mode
3•jamesfisher•54m ago•0 comments

Syscall: Ring ZERO assembly puzzle game for those who are tired of agentic AI

https://store.steampowered.com/app/4849330/SYSCALL_RING_ZERO/
1•thisisneat•55m ago•0 comments

Show HN: AssistantAI – Real-Time Conversation Hints and Screenshot Analysis

https://github.com/Aleksandern/assistant-ai
1•aleksandern08•55m ago•0 comments

In 1850, Ignaz Semmelweis saved lives with three words: wash your hands (2015)

https://www.pbs.org/newshour/health/ignaz-semmelweis-doctor-prescribed-hand-washing
2•downbad_•59m ago•0 comments

Show HN: Qpilot – AI agent runs plain-text manual test cases in a real browser

https://github.com/broxhq/qpilot
2•Muhammad-21•1h ago•1 comments

The Declaration of Independence

https://acoup.blog/2026/07/04/collections-on-the-declaration-of-independence/
1•cesidio•1h ago•0 comments

Show HN: An MCP server that gives your AI assistant write access to /etc./hosts

https://www.lockinmcp.com
2•Kiog-Aser•1h ago•1 comments