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?

Ask HN: Techniques for learning things quickly using coding agents?

1•throwaw12•1m ago•0 comments

Comparing web search API providers on a Deep Research gauntlet

https://www.searchspace.io/blog/comparing-ai-agent-web-search-providers
2•carsonpoole•2m ago•0 comments

Literate Programming in the Age of LLMs

https://github.com/benatfroemming/explicode
1•ben77777•2m ago•1 comments

Ukraine's Point System

https://www.businessinsider.com/ukraine-e-points-system-steers-units-toward-more-strategic-target...
1•bear_with_me•4m ago•0 comments

Why American data centers can't plug in

https://worksinprogress.co/issue/why-american-data-centers-cant-plug-in/
1•paulpauper•6m ago•0 comments

The Metaculus Democracy Threat Index

https://www.astralcodexten.com/p/the-metaculus-threat-to-democracy
2•paulpauper•7m ago•0 comments

What if ideas aren't getting harder to find, after all?

https://www.ft.com/content/72b96cb4-15f3-4bfc-a0b7-dabc31bbe1fa
1•paulpauper•7m ago•0 comments

Astryx Design System

https://astryx.atmeta.com/
2•tilt•9m ago•0 comments

Give GitHub Copilot CLI real code intelligence with language servers

https://github.blog/ai-and-ml/github-copilot/give-github-copilot-cli-real-code-intelligence-with-...
2•mariuz•11m ago•0 comments

ExtSteamGame: Explainable Steam Recommendations from Game Reviews

https://nextsteamgame.com
1•apeczon•12m ago•0 comments

A History of Tug-of-War Fatalities

https://priceonomics.com/a-history-of-tug-of-war-fatalities/
1•EndXA•12m ago•0 comments

Lufthansa Asked for My Credit Card

https://yashgarg.dev/posts/lufthansa-credit-card/
2•speckx•13m ago•0 comments

<LoginWithChatGPT /> – Unofficial login to personal ChatGPT subscription

https://twitter.com/saviomartin7/status/2070531441415602469
1•saviomartin•15m ago•0 comments

Reckoning with the Political Economy of AI

https://arxiv.org/abs/2604.16106
1•andyjohnson0•17m ago•1 comments

NYT slams Microsoft for building copyright-infringing supercomputer for OpenAI

https://arstechnica.com/tech-policy/2026/06/microsoft-built-supercomputer-to-help-openai-infringe...
1•01-_-•17m ago•0 comments

'Edited' human embryos reveal secrets of our development–and fuel ethical debate

https://www.nature.com/articles/d41586-026-02027-0
2•bookofjoe•19m ago•1 comments

Full duration single-engine static fire test of Starship 40

https://twitter.com/spacex/status/2070482358369763674
1•ivewonyoung•20m ago•0 comments

How to Design Search for a Database

https://bonsai.io/blog/how-to-design-search-for-a-database/
1•binarymax•20m ago•0 comments

Show HN: Statey – the database your AI shares across every chat, over MCP

https://www.statey.ai
2•scottwillman•21m ago•0 comments

Perplexity's Brain Is a Context Graph. That's the Point

https://hydradb.com/blog/perplexity-brain-context-graph
1•manveerc•22m ago•0 comments

Open Letter to Compassionate, Left-Leaning, AI-Hating, Animal-Loving Meat Eaters

https://brennan.day/an-open-letter-to-compassionate-left-leaning-ai-hating-animal-loving-meat-eat...
1•speckx•22m ago•0 comments

Posthog's marketing budget in 2026 (with actual $ figures)

https://posthog.com/founders/actual-marketing-budget-2026
1•herbertl•24m ago•0 comments

MirrorCode: What's the largest software project AI can complete on its own?

https://epoch.ai/MirrorCode
2•tadamcz•25m ago•1 comments

Reed-Solomon for OCR: error correction for messy printed codes

https://github.com/chasangchual/reed-solomon-for-ocr
1•chasangchual•27m ago•0 comments

Aircraft crashes into Beijing's tallest skyscraper, triggering evacuations

https://www.dailymail.com/news/article-15932611/Aircraft-crashes-Beijings-tallest-skyscraper-trig...
3•Bender•29m ago•0 comments

DuckDuckGo, Unable to Resist AI's Pull, Mistakenly Claims Trump Died of Rabies

https://gizmodo.com/duckduckgo-unable-to-resist-the-pull-of-ai-mistakenly-claims-trump-died-of-ra...
2•gnabgib•29m ago•0 comments

PHP and TypeScript Types Comparison

https://gitlab.com/-/snippets/6005114
1•DPDmancul•29m ago•0 comments

Smart lock maker Level has been gutted and its founders are out

https://www.theverge.com/tech/957802/level-lock-layoffs-assa-abloy-kwikset-smart-lock-cloud
2•teepo•30m ago•0 comments

Chronic Pain: The Science of Unlearning Pain

https://www.zeit.de/gesundheit/2025-11/chronic-pain-causes-treatments-pain-perception-english
3•Tomte•31m ago•1 comments

PlayStation Is Deleting 551 Movies from Customers' Accounts

https://kotaku.com/playstation-store-movies-digital-studio-canal-terminator-2000711013
3•ortusdux•32m ago•0 comments