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?

Websites Were Built Before Flexbox and Grid

https://www.jstools.space/blog/css-before-flexbox/
1•javatuts•5m ago•0 comments

Show HN: Passepartout – Create beautiful photo collages

https://joexo.codeberg.page/passepartout/
1•joexo•10m ago•0 comments

A11y.md – A context system for building accessible software

https://github.com/fecarrico/A11Y.md
1•javatuts•12m ago•0 comments

Has the New Cocaine Arrived?

https://playboy.substack.com/p/has-the-new-cocaine-finally-arrived
4•bookofjoe•12m ago•0 comments

The Wikimedians of the Year 2026

https://diff.wikimedia.org/2026/07/22/meet-the-wikimedians-of-the-year-2026/
1•altilunium•14m ago•0 comments

It's no longer enough to just contribute to open source

https://write.as/6fkj8gxtfcw3d
1•garn810•15m ago•0 comments

Show HN: iOS Style Bottom Sheet in Vanilla JavaScript

https://www.cssscript.com/ios-bottom-sheet/
1•mushstory•15m ago•0 comments

The $5k tell: AI vendors are selling you human QA for their own AI

https://okaneland.com/study/the-5000-dollar-tell/
1•ermantrout•18m ago•0 comments

Ask HN: When will the AI version of 911 happen?

2•dfps•20m ago•1 comments

There Are Only Four Billion Floats–So Test Them All (2014)

https://randomascii.wordpress.com/2014/01/27/theres-only-four-billion-floatsso-test-them-all/
1•downbad_•22m ago•0 comments

Show HN: Cordial — Roblox on Linux, Fully Open source, Yours

https://github.com/luohoa97/cordial
2•neil_luo•25m ago•1 comments

Buğuyu Silmeden Manzarayı Göremezsin

https://ruhumdan.substack.com/p/buguyu-silmeden-manzaray-goremezsin
2•Banuche•26m ago•0 comments

China's free Kimi K3 AI model shakes up global tech market

https://restofworld.org/2026/china-moonshot-kimi-k3-free-sovereign-ai/
3•donohoe•27m ago•0 comments

Agreement Is Not Understanding

https://ianberdin.com/essays/agreement-is-not-understanding
2•ianberdin•29m ago•0 comments

See in yourself. Then, evolve at sleek.silisleek.com

2•silisleek•32m ago•0 comments

Show HN: How I learn and review jargon of different fields nowadays

https://jargon-gym.vercel.app
1•behnamazimi•35m ago•0 comments

Giving and taking credit in big tech companies

https://www.seangoedecke.com/giving-and-taking-credit/
1•lalitmaganti•35m ago•0 comments

Designing APIs for Agents

https://webflow.com/blog/designing-apis-for-agents
1•msolujic•35m ago•0 comments

Show HN: Loop-me – my simple generative art loop project

https://john-paul-ruf.github.io/loop-me/
3•john_paul_ruf•38m ago•0 comments

Twenty Years of RISC OS Open

https://www.riscosopen.org/news/articles/2026/06/20/twenty-years-of-risc-os-open
15•AlexeyBrin•41m ago•1 comments

F*: A general-purpose proof-oriented programming language

https://fstar-lang.org/
2•ducktective•46m ago•0 comments

An exam leak in India exposed a Gen Z jobs crisis that goes much deeper

https://www.cnbc.com/2026/08/02/india-exam-leak-protests-jobs-crisis-gen-z-unemployment-modi.html
4•cramer4next•51m ago•0 comments

The future is for everyone [video]

https://www.youtube.com/watch?v=JlRgRmAqoAc
1•firstSpeaker•51m ago•0 comments

When Verification Explores Too Far: LLM Test Coverage vs. Validity

https://zenodo.org/records/21758550
1•haitamk•51m ago•0 comments

Show HN: DesktopAudio, a tool to record what your Mac plays

https://desktopaudio.app/
1•AquiGorka•51m ago•0 comments

The TEMU-Fication of Software, Digital Goods and Services

https://xn--gckvb8fzb.com/the-temu-fication-of-software-digital-goods-services/
3•wrxd•56m ago•0 comments

Show HN: Handoff is await human() for AI agents

https://github.com/OmegaAgent/handoff
1•LivingGlitcher•57m ago•1 comments

Transformer Models in Financial Forecasting: Outperforming LSTMs

https://algo-finance.com/ai/machine-learning/transformer-models-financial-forecasting-2026/
1•anonymoussala•57m ago•0 comments

Velocity a proof of linear-scaling long context for existing LLMs, no retraining

https://github.com/Veloresearch/velocity-mta-proof
1•Veloresearch•1h ago•0 comments

An AI TikTok Shop Slop Factory That Shills Supplements the FDA Recalled

https://www.404media.co/inside-an-ai-tiktok-shop-slop-factory-that-shills-supplements-recalled-by...
1•Dfol•1h ago•0 comments