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•11mo 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•11mo 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?

Carrot Disclosure

https://dustri.org/b/carrot-disclosure.html
1•pabs3•9s ago•0 comments

From Convergence to Confidence: Push-Button Verification for RDTs

https://kcsrk.info/verification/rdts/lean/2026/04/28/from-convergence-to-confidence/
2•matt_d•4m ago•0 comments

Show HN: Agents in Whisper Memos

https://whispermemos.com/agents
1•Void_•6m ago•0 comments

Space meteor showers visualization powered by SpaceKit.js

https://www.meteorshowers.org/
1•axbyte•10m ago•0 comments

Despite everything, a small praise of GitHub

https://davidpoblador.com/blog/despite-everything-a-small-praise-of-github.html
3•nirvanis•13m ago•0 comments

Paper Age

https://marcin.cylke.com.pl/til/2026-04-28-til-paper-age/
5•janisz•14m ago•0 comments

Workers Training Meta's AI Could Be Laid Off

https://www.wired.com/story/meta-covalen-ai-workers-layoffs/
8•tijana3290•17m ago•0 comments

The Site for Prevention of Laptop Sales

https://lars.ingebrigtsen.no/2026/03/23/the-site-for-prevention-of-laptop-sales/
2•internet_points•18m ago•0 comments

The Downfall and Enshittification of Microsoft in 2026

https://caio.ca/blog/the-downfall-and-enshittification-of-microsoft.html
7•birdculture•20m ago•0 comments

Britain's Solar Revolution Is Here; We Should Be Shouting It from the Rooftops

https://bylinetimes.com/2026/04/22/britains-solar-revolution-is-here-and-we-should-be-shouting-it...
6•robtherobber•21m ago•0 comments

Show HN: C# based Kubernetes Operator to deploy SurrealDB

https://github.com/stevefan1999-personal/surrealdb-operator
4•stevefan1999•27m ago•1 comments

Wire to Replace Signal as Standard in the Bundestag

https://www.heise.de/en/news/Digital-Sovereignty-Wire-to-Replace-Signal-as-Standard-in-the-Bundes...
13•raffael_de•31m ago•5 comments

Why Codex works better than Claude Code for my production monolith

7•anophelon•32m ago•1 comments

ListingBot – One click, 100 directories, zero hassle

https://listingbott.com/
4•listingbott•37m ago•0 comments

Meta found in breach of EU law for failing to keep children off platforms

https://www.theguardian.com/technology/2026/apr/29/meta-found-in-breach-of-eu-law-for-failing-to-...
12•geox•40m ago•0 comments

RSME: A Reactive Stability Mutation Encryption

https://zenodo.org/records/19712564
4•RanggaS•40m ago•0 comments

Study Finds a Third of New Websites Are AI-Generated

https://www.404media.co/study-finds-a-third-of-new-websites-are-ai-generated/
5•thm•43m ago•0 comments

Who's on call? How Opus 4.6 helped us calculate this 2,500x faster

https://incident.io/blog/whos-on-call-how-claude-helped-us-calculate-this-2-500-x-faster
5•boryrain•46m ago•0 comments

Show HN: TiGrIS, a tiling compiler that fits ML models onto embedded devices

https://github.com/raws-labs/tigris
6•asteinh•51m ago•0 comments

ANP – A binary protocol for AI agent-to-agent price negotiation (no LLM tokens)

https://github.com/victornominista/anp
4•VC83•54m ago•0 comments

Rebuilding the Data Stack for AI

https://www.technologyreview.com/2026/04/27/1136322/rebuilding-the-data-stack-for-ai/
4•joozio•58m ago•0 comments

Sovereign Tech Standards network: financial support for open source maintainers

https://www.sovereign.tech/programs/standards
9•mgajdo•59m ago•1 comments

Anthropic's Champion Kit for engineers pushing Claude Code at their company

https://code.claude.com/docs/en/champion-kit
6•ashadh•59m ago•0 comments

India's major airlines on 'verge of closing down' as high fuel costs sting

https://www.scmp.com/news/asia/south-asia/article/3351782/indias-major-airlines-verge-closing-dow...
6•TMWNN•1h ago•0 comments

A Podcast with Talkie, a 13B model trained only on pre-1931 text

https://the-coming-age-aqx87j.jellypod.com
3•bilater•1h ago•1 comments

The UK's Answer to DARPA Wants to Rewire the Human Brain

https://www.wired.com/story/kathleen-fisher-jacques-carolan-aria-wired-health/
3•beardyw•1h ago•0 comments

Specification-Driven Development framework for agent-native development

https://specdd.ai
5•addvilz•1h ago•0 comments

Low-Compilation-Cost Register Allocation in LLVM-Based Binary Translation

https://dl.acm.org/doi/abs/10.1145/3767295.3803591
14•matt_d•1h ago•0 comments

Germany Overtakes US in Ammunition Production Capacity

https://www.newsweek.com/germany-overtakes-us-in-ammunition-production-capacity-11886409
56•vrganj•1h ago•32 comments

Ask HN: What are you doing during inference?

7•petesergeant•1h ago•2 comments