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?

Are We Reinventing the Tools of Data Engineering for AI?

https://www.ssp.sh/brain/are-we-reinventing-the-tools-of-data-engineering-for-ai/
1•zazuke•3m ago•0 comments

Show HN: Crypto portfolio risk and scenario analysis with AI agents on top

https://sentralis.io/
2•Sentralis•5m ago•0 comments

Rage4J: Test your LLM apps like the rest of your Java code

https://rage4j.dev/
4•d1351r43•9m ago•0 comments

Why Bending Spoons eliminated all job titles

https://twitter.com/davidsenra/status/2099203963518058695
1•taubek•9m ago•2 comments

Memocept: Smart Solutions for Better Business Growth

https://finance.yahoo.com/healthcare/articles/memocept-introduces-multi-ingredient-dietary-163100...
1•grennihuke•9m ago•0 comments

GraphViz – Layout Engines

https://graphviz.org/docs/layouts/
2•vismit2000•11m ago•0 comments

AI should know that mylocalhost.com – is a real domain

https://www.reddit.com/r/Domains/comments/1vsz3we/ai_should_know_that_mylocalhostcom_is_a_real/
1•asimovDev•11m ago•1 comments

Intelligence per Watt: Measuring Intelligence Efficiency of Local AI

https://arxiv.org/abs/2511.07885
1•pythonic_hell•17m ago•0 comments

Google illegally retains customer data,Please do not flag this post

https://medium.com/@istokovicsgyorgy79/google-illegally-retains-customer-data-and-i-am-taking-leg...
2•Bitu79•19m ago•4 comments

The CRA Single Reporting Platform Is Launched

https://www.enisa.europa.eu/news/the-cra-single-reporting-platform-is-launched
1•fourfire•19m ago•0 comments

Sam Altman spells out why the AI industry wants to slow down

https://www.cnbc.com/2026/09/14/sam-altman-ai-slowdown-anthropic-amodei-musk.html
2•cramer4next•21m ago•1 comments

The metric nobody measures: how long until the bleeding stops

https://www.getunleash.io/blog/mean-time-to-neutralize
1•alexcasalboni•21m ago•0 comments

Militant Democracy and Fundamental Rights [pdf]

https://warwick.ac.uk/fac/arts/history/students/modules/hi290/seminars/revolution/lowenstein_mili...
1•0bytes•22m ago•0 comments

Show HN: I made a flight simulator, except you're just a passenger

https://inflightsimulator.com
4•rkotcher•25m ago•2 comments

AI Myth – College Educate, Benefit from AI – Morgan Stanley

https://finvaulta.com/share/N4FZt0B1rE2bxHuo1rAjEg
1•campervans•25m ago•1 comments

Roff (Software)

https://en.wikipedia.org/wiki/Roff_(software)
1•vinhnx•27m ago•0 comments

My Complete Agentic Coding Setup Tech Stack Feb 21 2026 – Updated Jun 29 2026

https://hboon.com/my-complete-agentic-coding-setup-and-tech-stack/
1•Bluestein•34m ago•0 comments

Claude and I made a MAME attact mode app

https://www.coldbeamgames.com/ghostcade.html
1•Stargx•36m ago•0 comments

Ask HN: Can't input "double quotes" in Gmail web?

1•dgan•36m ago•0 comments

God Help Us, Let's Try to Learn About Mechanistic Interpretability Techniques

https://www.astralcodexten.com/p/god-help-us-lets-try-to-learn-about
4•AriFordsham•36m ago•0 comments

Can Europe build a competitive polysilicon industry?

https://www.pv-magazine.com/2026/05/20/can-europe-build-a-competitive-polysilicon-industry/
1•leonidasrup•37m ago•0 comments

Let your coding agents exchange nofollow backlinks

https://getlinkbunny.com/
2•Bluestein•37m ago•0 comments

How the Clash Between Money and Safety Created a Monumental Crisis for AI

https://www.wsj.com/tech/ai/openai-anthropic-crisis-money-safety-847bc1d6
2•thm•38m ago•0 comments

OpenAI Pauses IPO Plans Amid AI Safety Worries

https://www.pymnts.com/news/2026/openai-pauses-ipo-plans-amid-ai-safety-worries/
2•thm•39m ago•0 comments

Show HN: Blur. Sharpen. Repeat. Get Turing Patterns

https://www.maximevidal.com/turing-patterns
1•vmaxmc2•42m ago•0 comments

WebP

https://en.wikipedia.org/wiki/WebP
1•tosh•42m ago•0 comments

Whoop replacement noop 11.7 released

https://github.com/ryanbr/noop/releases
1•mp3geek•42m ago•0 comments

Worlds Upon The Wind: a peaceful roguelite deckbuilder about resettling a world

https://github.com/max99x/wutw-public
1•rdmuser•47m ago•1 comments

Show HN: Openstatus/health tree-shakable health endpoints for JavaScript servers

https://github.com/openstatusHQ/health
2•tibozaurus•48m ago•0 comments

The Archival Dystopia of Blade Runner 2049 and Aeon Flux

https://www.pop-archives.com/post/pop-archives-deep-thoughts-the-archival-dystopia-of-blade-runne...
2•october8140•56m ago•0 comments