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

Can a General LLM Diagnose a Dicom Slice?

https://avkcode.github.io/blog/codex-dicom-benchmark.html
1•KyleVlaros•36s ago•1 comments

Synth-dataset-kit: Generate and audit synthetic datasets from seed data

https://github.com/KazKozDev/synth-dataset-kit
1•kazkozdev•2m ago•0 comments

CPUID

https://en.wikipedia.org/wiki/CPUID
1•tosh•3m ago•0 comments

High fantasy map of tech writing (AI edition)

https://passo.uno/fantasy-map-tech-writing-ai/
1•eigenBasis•3m ago•0 comments

Ebanx is expanding its operations

https://www.reuters.com/world/americas/brazilian-payments-firm-ebanx-makes-southeast-asia-push-20...
1•wasimsk•5m ago•0 comments

Bluesky Is Down

https://status.bsky.app/
2•alex_suzuki•6m ago•1 comments

The goal should not be to ship earlier, it should be to deliver value faster

https://substack.com/profile/433807968-matt/note/c-244243491
1•wibboweaver•7m ago•0 comments

Claude had enough of this user

https://old.reddit.com/r/OpenAI/comments/1smu2rk/claude_had_enough_of_this_user/
1•mellosouls•9m ago•0 comments

Show HN: Do Thought Streams Matter? A Benchmark of VLM Reasoning in Gemini 2.5

https://arxiv.org/abs/2604.11177
1•ashu_trv•10m ago•0 comments

Top Offshore Affordable Game Development Studios for Clients in the USA

https://www.indiehackers.com/post/top-offshore-affordable-game-development-studios-for-individual...
1•gamepro•12m ago•0 comments

OMLX – Apple Silicon Optimized Local Inference

https://omlx.ai/
1•oldfuture•12m ago•0 comments

Source code emoji proposal [pdf]

https://source-code-emoji.github.io/proposal/source-code-emoji-proposal.pdf
1•michalc•13m ago•1 comments

I learned Unity the wrong way

https://darkounity.com/blog/how-i-learned-unity-the-wrong-way
1•lelanthran•15m ago•0 comments

My Deepest Condolences to Gary

https://twitter.com/garrytan/status/2044677189896220927
1•kuzey•17m ago•0 comments

Java Brain vs. Other Brain Supplements: Which Is Better? [pdf]

https://www.fd.ulisboa.pt/wp-content/uploads/formidable/2/JavaBrainReal1-fg3ba.pdf
1•tagokaju•21m ago•0 comments

SIMD Parallelism

https://en.algorithmica.org/hpc/simd/
1•tosh•21m ago•0 comments

YouTube now lets you set your Shorts feed limit to zero

https://www.phonearena.com/news/you-can-now-kill-your-youtube-shorts-feed-with-one-setting_id179694
1•dogscatstrees•21m ago•1 comments

British lawmakers are in a jam over changes to the definition of marmalade

https://apnews.com/article/marmalade-citrus-definition-uk-eu-paddington-079c72d9051cc03c75cad3f35...
2•HieronymusBosch•23m ago•0 comments

FB >> HTTPS://Www.facebook.com/NaoriSymbiotics.Get/

https://www.facebook.com/NaoriSymbiotics.Get
1•nerrrashu•23m ago•0 comments

14-Year Journey Away from ORMs – PGenie, SQL-First Postgres Code Generator

https://nikita-volkov.github.io/pgenie-in-production-part-1/
2•mpweiher•25m ago•1 comments

On Mar 28, 2026 >50% of users access Google over IPv6 for the first time

https://www.google.com/intl/en/ipv6/statistics.html
2•NavinF•32m ago•1 comments

I'm not feeling the async pressure

https://lucumr.pocoo.org/2020/1/1/async-pressure/
1•sixhobbits•34m ago•0 comments

Show HN: BuilderPulse – Daily intelligence from 10 sources for indie hackers

https://github.com/BuilderPulse/BuilderPulse
1•blacktechnology•35m ago•0 comments

Managed, Real-Time OLAP Infrastructure

https://modolap.com/
1•ronfriedhaber•37m ago•0 comments

Pfsync Packet Header Field Renamed to Avoid AI Bug Report Noise

https://undeadly.org/cgi?action=article;sid=20260413055845
1•somat•41m ago•0 comments

The IPv6 Mess (2002)

https://cr.yp.to/djbdns/ipv6mess.html
1•tgma•43m ago•0 comments

Show HN: Using Telegram as an indexed system for geo-notes

1•migelo•44m ago•0 comments

Ask HN: Who is your favourite Entrepreneur/Visionary?

2•wasimsk•45m ago•1 comments

European civil servants are being forced off WhatsApp

https://www.politico.eu/article/european-civil-servants-new-messaging-services/
2•ZacnyLos•47m ago•0 comments

Online age checks are coming in Europe

https://www.politico.eu/article/online-age-checks-are-coming-europe-children-social-media/
1•ZacnyLos•49m ago•0 comments