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?

OpenAI provides more details on the Hugging Face incident

https://www.heise.de/en/news/OpenAI-provides-more-details-on-the-Hugging-Face-incident-11403391.html
2•slow_typist•5m ago•1 comments

Just built Dot. Would love feedback

https://www.use-dot.com
1•r_gaur•7m ago•1 comments

What's new in Swift: July 2026 Edition

https://swift.org/blog/whats-new-in-swift-july-2026/
2•frizlab•8m ago•0 comments

How to Notice and Avoid Scams

https://nonconfirmed.com/how-to-notice-and-avoid-scams
1•colenikol2•10m ago•0 comments

You can make any software you want now, then why don't you?

1•sarmadgulzar•11m ago•1 comments

Show HN: Turn an idea into a product you can order

https://www.luphra.com
1•stochtinkerer•16m ago•1 comments

DeepMind's WeatherNext model achieves breakthrough forecasting cyclones

https://deepmind.google/blog/weathernext-ai-model-achieves-breakthrough-in-forecasting-cyclones/
1•bhavansig•19m ago•1 comments

Thimbleweed Park 2 Dev Blog

https://blog2.thimbleweedpark.com/twp2_tech/
1•MrVandemar•24m ago•0 comments

Show HN: Draw Your Room. Share Your Plan

https://freeroomplanner.com/
1•wowinter15•29m ago•0 comments

The phone book that led us to Assad's spy chief in hiding

https://www.bbc.co.uk/news/articles/c4gyrzn8p94o
1•justworks•34m ago•0 comments

Show HN: I mapped business competition density across NYC, block by block

https://worththespot.com/
1•losas28066•35m ago•0 comments

Show HN: Lensa – Open-source MCP connectors and skills for ChatGPT

https://github.com/mitrotasios/lensa-mcp
1•amitrotasios•36m ago•0 comments

Don't Build Mindreading

https://keller.substack.com/p/dont-build-mindreading
1•celer•42m ago•0 comments

Show HN: Hosted LLM Wiki

https://getmana.md/
2•zintus•49m ago•0 comments

Rcarmo/wrdp: Experimental xrdp/sesman-like setup for Wayland-backed desktops

https://github.com/rcarmo/wrdp
1•rcarmo•53m ago•0 comments

World-class higher education targeting <$10k for degree

https://khanted.org
1•JSR_FDED•54m ago•0 comments

CATL Secures 2GWh Sodium-Ion Storage Deal with Solarpro for Eastern Europe

https://fuelcellsworks.com/2026/07/21/battery/catl-secures-2gwh-sodium-ion-storage-deal-with-sola...
1•jamesblonde•55m ago•1 comments

Tlbic v11.0 (French Edition): Bottom-Up Governance and AI Audit

https://drive.google.com/file/d/1XLbJ-tTlnFNgrzRxlYXE4FmVSpSoQMIm/view?usp=drive_link
1•michikawa59•56m ago•1 comments

Grammelot

https://en.wikipedia.org/wiki/Grammelot
1•schandmaul•1h ago•0 comments

The Fifteen-Minute Principal Engineer

https://markatwood.substack.com/p/the-fifteen-minute-principal-engineer
1•slyall•1h ago•0 comments

Building my own project management tool on Cloudflare

https://tom-dickson.com/blog/projektor-mcp-issue-tracker-cloudflare-workers/
1•tajd•1h ago•1 comments

Code harness for DeepSeek V4? OpenCode vs. pi vs. jcode vs. reasonix

https://grigio.org/which-is-the-best-coding-harness-for-deepseek-v4-opencode-vs-pi-vs-jcode-vs-re...
1•grigio•1h ago•0 comments

Google doesn't need the LLM crown

https://www.semafor.com/article/08/07/2026/google-doesnt-need-the-llm-crown
1•theanonymousone•1h ago•1 comments

Show HN: Appealr – 15s live face-offs ranked by human votes (not AI)

https://appealr.vercel.app
1•arian_•1h ago•0 comments

The Vampire Theorem Prover

https://github.com/vprover/vampire
1•modinfo•1h ago•0 comments

American oil company prepares to drill in Greenland

https://www.theguardian.com/world/2026/aug/08/greenland-iwarning-trump-linked-oil-firm-prepares-d...
2•qprofyeh•1h ago•0 comments

The screwdriver test, or What separates real engineers from the rest

https://carette.xyz/posts/a_story_of_screwdriver_drivers/
7•LucidLynx•1h ago•0 comments

Show HN: I updated my unofficial Substack Posting API

https://apisubstack.com/
2•bigmuzzy•1h ago•1 comments

From constraint models to playable puzzle games

https://zayenz.se/blog/post/constraint-generated-puzzle-games/
2•thunderbong•1h ago•0 comments

Conway's Law

https://martinfowler.com/bliki/ConwaysLaw.html
1•pykello•1h ago•0 comments