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?

Right to Repair: The Battle You Didn't Know You Were Fighting

https://www.youtube.com/watch?v=ZaX20zv-Xw4
1•mdp2021•12s ago•0 comments

Ask HN: Could someone please invite me to Lobste.rs?

1•ML0037•2m ago•0 comments

AI inequality: from GPU-poor to token-poor

https://adlrocha.substack.com/p/adlrocha-ai-inequality-from-gpu-poor
1•adlrocha•4m ago•0 comments

Show HN: Memoriq – Open-source encrypted vault for saving and searching AI chats

https://github.com/memoriqme/memoriq
1•giekaton•5m ago•0 comments

RoleDecoder

https://roledecoder.com/
1•Mohammad_1ta•5m ago•0 comments

SemanticSourceCode – Local semantic code search with Ollama and SQLite

https://github.com/TheEifelYeti/SemanticSourceCode
1•EifelYeti•9m ago•0 comments

Shipping Outside the App Store

https://keylight.dev/blog/launch-mac-app-outside-app-store/
1•dmzxnico•11m ago•0 comments

Four LTS Java Versions Get End-of-Support in a Three-Year Window (2029-2032)

https://m.slashdot.org/story/455546
1•ilreb•13m ago•0 comments

Show HN: AppLaunch – Local Service App Builder

https://applaunch.teamzlab.com/
1•mdhemalakhand•13m ago•0 comments

UNK_DeadDrop Phishing Campaign Targets Developers to Steal Cryptocurrency

https://www.proofpoint.com/us/blog/threat-insight/dont-fear-repo-unkdeaddrop-phishing-campaign-ta...
2•denysvitali•16m ago•0 comments

Ask HN: What is your blog and why should I read it?

2•chistev•17m ago•1 comments

A policy enforcement layer for MCP tool execution using Rego

https://github.com/marvior/regentix
1•walmol•18m ago•0 comments

Macaroni Messenger 1.03 – small documentation fixes

https://github.com/vanyapr/makaroshki/releases/tag/v1.03
2•snowflaxxx•26m ago•1 comments

Laser Phase Plate Cryo-Electron Microscopy

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
3•peteforde•29m ago•0 comments

AI Is Bringing Mashups Back

https://www.wolfe.id.au/2026/06/12/ai-is-bringing-mashups-back
2•markwolfe•34m ago•0 comments

N-Tier Services and Systems Complexity

https://yegge.ai/essays/services-and-complexity/
2•tosh•36m ago•0 comments

AI Memory Is Still Thinking Like Search

https://medium.com/@jeffreyflynt02/ai-memory-is-still-thinking-like-search-e07566311efe
4•jflynt76•37m ago•0 comments

Show HN: Have your agent consult other models

https://github.com/raine/consult-llm
2•rane•39m ago•0 comments

Final run for the current LHC accelerator (but more to come)

https://www.nikhef.nl/en/news/final-run-for-the-current-lhc-accelerator-but-more-to-come/
3•elashri•51m ago•2 comments

Have politics come for the National Academies of Science?

https://arstechnica.com/science/2026/06/have-politics-finally-come-for-the-national-academies-of-...
1•rbanffy•52m ago•0 comments

Hacking Salesforce Sites with an LLM Agent

https://www.reco.ai/blog/hacking-salesforce-sites-with-an-llm-agent
2•llmacpu•57m ago•0 comments

Why the US economy keeps defying the odds

https://www.bbc.com/news/articles/cwy031el03po
1•ilreb•59m ago•1 comments

Anthropic Is Taking AI Welfare Seriously. I'm Not Sure It Knows What It's Measu

https://www.lesswrong.com/posts/gNtHHCh363xSGJyz3/anthropic-is-taking-ai-welfare-seriously-i-m-no...
2•joozio•1h ago•0 comments

I accidentally hit SOTA on agentic memory by using AI companions

https://graph.coder.company/
2•vignesh_146•1h ago•3 comments

Local Models in Mid-2026

https://coles.codes/posts/local-models-mid-2026
1•colescodes•1h ago•0 comments

Google's Pinpoint is the free research tool you should know about

https://www.fastcompany.com/91558438/googles-pinpoint-is-the-free-research-tool-you-should-know-a...
2•OutOfHere•1h ago•1 comments

Untrusted data in Linux – How Rust is going to save us

https://www.youtube.com/watch?v=Nzmj7K0FNRY
2•tux1968•1h ago•0 comments

One-click, production-like ATProto network for local development and E2E testing

https://github.com/eurosky-social/u-at-proto
1•doener•1h ago•0 comments

Levyer: The Platform. Designed for Freedom

https://levyer.com/
1•doener•1h ago•0 comments

HumanizeHub: A confidential marketplace for humanizing AI content

https://humanizehub.me
1•cocoglare•1h ago•0 comments