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?

An Autonomous Game Factory with Claude Code and a $24 VPS

https://www.bassimeledath.com/blog/game-factory
1•bombastic311•53s ago•0 comments

Michael Rockefeller: The Heir at the Edge of the World

https://arcarcana.substack.com/p/michael-rockefeller-the-heir-at-the
1•thunderbong•2m ago•0 comments

Starlink satellite breaks apart into "objects" SpaceX confirms "anomaly"

https://arstechnica.com/tech-policy/2026/03/starlink-satellite-breaks-apart-into-tens-of-objects-...
1•jfoster•2m ago•0 comments

MooseStack: The 'Next.js' for Real-Time Analytics on ClickHouse

https://github.com/514-labs/moosestack
1•satyampsoni•4m ago•1 comments

Mokeytype Clippy Guest

https://monkeytype.com
1•CaRDiaK•4m ago•1 comments

A Unified Software Architecture Theory [Whitepaper] [pdf]

https://looppass.mindmeld360.com/whitepapers/unified-software-architecture-theory.pdf
1•tomerbd•5m ago•0 comments

A Look at Some Retro Desktop Graphical User Interfaces

https://www.goto10retro.com/p/a-look-at-some-retro-desktop-graphical
1•rbanffy•7m ago•0 comments

The New Age of Research

https://paradigma.inc/blog/the-new-age-of-research/
1•sebg•9m ago•0 comments

One Hundred Hours Inside Kimi

https://twitter.com/ruima/status/2039245985520681257
1•langitbiru•9m ago•0 comments

tinygrad: Apple approved our driver for both AMD and Nvidia

https://twitter.com/__tinygrad__/status/2039213719155310736
2•tosh•12m ago•1 comments

EPropelled Electric Propulsion Motors and Controllers for Uncrewed Vehicles

2•ePropelled•15m ago•0 comments

How to Generate SEO Descriptions for Your Wagtail Site at Once

https://timonweb.com/wagtail/how-to-generate-seo-descriptions-for-your-entire-wagtail-site-at-once/
1•timonweb•15m ago•0 comments

Modeling Complex Business Processes in REST APIs

https://blog.ivankahl.com/practical-guide-to-modeling-business-processes-in-rest-apis/
1•ivankahl•17m ago•0 comments

From Distributed Scheduler to WebAssembly

https://volodymyrrudyi.com/blog/from-distributed-scheduler-to-wasm/
1•vrudyi•18m ago•0 comments

Pentagon declines to reaffirm NATO's collective defense, says up to Trump

https://www.reuters.com/business/aerospace-defense/pentagon-declines-reaffirm-natos-collective-de...
2•Bondi_Blue•18m ago•0 comments

Cloud Cost Optimizer – Magical one-click button

https://stopburning.money/
1•alianinfo•21m ago•1 comments

A Change to Common Crawl Dataset Size Reporting

https://commoncrawl.org/blog/announcing-a-change-to-common-crawl-dataset-size-reporting
1•ccgreg•22m ago•1 comments

I open-sourced Claude's best feature

https://github.com/Kilo-Loco/homie-mcp
1•kiloloco•23m ago•1 comments

Show HN: TraceLit – debug LeetCode step by step

https://tracelit.dev/
2•eric_z•27m ago•0 comments

Claude Code source leak reveals how much info Anthropic can hoover up about you

https://www.theregister.com/2026/04/01/claude_code_source_leak_privacy_nightmare/
3•jruohonen•33m ago•0 comments

CERN levels up with new superconducting karts

https://home.cern/news/news/engineering/cern-levels-new-superconducting-karts
27•fnands•36m ago•5 comments

AWS App Runner availability change

https://docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html
3•seyz•37m ago•0 comments

Remembering Magnetic Memories and the Apollo AGC

https://2earth.github.io/website/20260304.html
4•2earth•41m ago•1 comments

Show HN: Kbot – open-source terminal AI with dream engine (676 tools, $0 local)

https://github.com/isaacsight/kernel
2•isaacsight•47m ago•0 comments

Paste clipboard images into Claude Code over SSH

https://alexanderzeitler.com/articles/paste-clipboard-images-into-claude-code-over-ssh/
2•alexzeitler•47m ago•0 comments

Portel: The Observability Platform for Portlet-Based Generative UI

https://ollygarden.com/press/portel-april-2026
1•ollygarden•50m ago•0 comments

Why AI agents fail customer operations

https://www.sentohq.com/posts/why-ai-agents-fail-customer-operations
3•adrved•50m ago•0 comments

Embracing AI with Claude's C Compiler

https://chipsandcheese.com/p/embracing-ai-with-claudes-c-compiler
4•kevvok•52m ago•0 comments

Italy Senate Wi-Fi Password Sparks Buzz After "Dux" Appears in Network Sign

https://www.repubblica.it/politica/2026/04/01/news/senato_spunta_dux_password_wifi-425256568/
2•omblivion•53m ago•0 comments

Project Lean – The $10B Singularity Architecture

1•tk-LEAN•54m ago•0 comments