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

Learning VIM while playing a game

https://vim-adventures.com/
1•juliangoetze•2m ago•0 comments

Places to Launch Your Startup

https://indiehunt.io/100-places-to-launch-your-startup
3•praneetbrar•2m ago•1 comments

The Quadratic Sandwich

https://fedemagnani.github.io/math/2026/04/08/the-quadratic-sandwich.html
1•cpp_frog•2m ago•0 comments

The mental load of understanding code we didn't write

https://eduardmoldovan.com/posts/the-mental-load-of-taking-responsibility-for-code-you-didnt-write
1•edimoldovan•5m ago•1 comments

Toto 2.0: Time series forecasting enters the scaling era

https://www.datadoghq.com/blog/ai/toto-2/
1•gmays•5m ago•0 comments

What it takes to get approved on the Zoom App Marketplace

https://www.sponja.ai/blog/zoom-app-marketplace-approval
1•roee_tsur•6m ago•0 comments

Saying Goodbye to Asm.js

https://spidermonkey.dev/blog/2026/05/20/saying-goodbye-to-asmjs.html
1•eqrion•7m ago•0 comments

D-Mail and Context Checkpoints

https://deepwiki.com/MoonshotAI/kimi-cli/7.4-d-mail-and-context-checkpoints
1•ankitg12•8m ago•0 comments

Drivers&mechanisms:convergent forelimb reduction in non-avian theropod dinosaurs

https://royalsocietypublishing.org/rspb/article/293/2071/20260528/481779/Drivers-and-mechanisms-o...
1•bookofjoe•8m ago•0 comments

Barnes and Noble CEO says the bookstore will stock AI-written books

https://www.fastcompany.com/91544722/barnes-noble-ceo-selling-ai-generated-books-comment-social-m...
1•jslakro•8m ago•0 comments

Changes to Gemini model access and limits

https://support.google.com/gemini/answer/17004136?hl=en
2•sidewndr46•9m ago•0 comments

Comparing an LZ4 Decompressor on Four Legacy CPUs

https://bumbershootsoft.wordpress.com/2026/05/09/comparing-an-lz4-decompressor-on-four-legacy-cpus/
1•tosh•10m ago•0 comments

VictoriaTraces: Tracing, Observability, and OpenTelemetry0

https://rtfm.co.ua/en/victoriatraces-tracing-observability-and-opentelemetry/
2•valyala•13m ago•0 comments

Show HN: Pay-as-you-play game servers from Discord (£2/mo, four games)

https://github.com/jdmcgrath/steam-server-on-demand
1•joebi•13m ago•0 comments

Google Antigravity Built an OS and agent teams

https://antigravity.google/blog/google-antigravity-built-an-os
1•oscarfr•16m ago•0 comments

Shipped Ask AI in Aura++ in all project's page

https://auraplusplus.com
1•praneetbrar•16m ago•1 comments

Not All Software Systems Are Agent Friendly

https://yassi.dev/posts/not_all_software_systems_are_agent_friendly/
2•yassi_dev•17m ago•1 comments

College students drown out AI-praising commencement speeches with boos

https://www.tomshardware.com/tech-industry/artificial-intelligence/college-students-drown-out-ai-...
5•iancmceachern•17m ago•0 comments

I built a tool that shows which parts might break your supply chain

https://partfinder.dev/
2•jeffreyporterpf•18m ago•1 comments

Microsoft is quietly shopping for an OpenAI replacement

https://thenextweb.com/news/microsoft-startup-deals-life-after-openai
1•gmays•20m ago•0 comments

Fail-closed AI audit for a plugin registry (Workers AI and D1)

https://emdashcms.org/
1•chrisjohnleah•20m ago•0 comments

Let Copilot handle your local Azure setup via MCP

https://topaz.thecloudtheory.com/blog/topaz-mcp-github-copilot/
1•kamilmrzyglod•22m ago•0 comments

The impossible maths of the AI boom

https://www.ft.com/content/32bf8935-8d21-4689-ae34-8b4d3d5f6d93
2•disgruntledphd2•25m ago•1 comments

Google Search Is Becoming an AI Agent

https://surfacedby.com/blog/google-search-is-becoming-an-ai-agent
1•startages•28m ago•0 comments

EU Cloud Provider News Roundup (Feb–May 2026)

https://www.eucloudcost.com/blog/eu-cloud-news-feb-may-2026/
1•mixxor•28m ago•1 comments

We replaced Redis with MySQL for inventory reservations – and it scaled

https://shopify.engineering/scaling-inventory-reservations
1•mlenol•32m ago•0 comments

Pythagorean Addition in the Head

https://entropicthoughts.com/pythagorean-addition
1•crescit_eundo•34m ago•0 comments

Rust Database from Scratch

https://github.com/ayoubnabil/aiondb
1•ayoubnabil•37m ago•0 comments

Show HN: Proposalkit.io – you write the content, we control the design

https://proposalkit.io/
1•silvertaza•38m ago•0 comments

Scented Entanglements (2023)

https://boasblogs.org/undoingraceandracism/scented-entanglements/
1•robtherobber•43m ago•0 comments