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

Creators of Grok, the AI Chatbot

https://x.ai/news/anthropic-compute-partnership
2•surprisetalk•1m ago•0 comments

Show HN: Daily knowledge-point briefing from your coding-agent sessions

https://github.com/madebywelch/recap
1•madebywelch•2m ago•0 comments

Canadian fiddler sues Google after AI Overview claimed he was a sex offender

https://www.theguardian.com/music/2026/may/05/canadian-ashley-macisaac-fiddler-musician-singer-so...
3•LordAtlas•4m ago•0 comments

Gavel: Towards Rule-Based Safety Through Activation Monitoring

https://arxiv.org/abs/2601.19768
1•wslh•5m ago•0 comments

Corgi Insurance (YC) is a unicorn (Forbes)

https://www.forbes.com/sites/richardnieva/2026/05/05/corgi-ai-unicorn/
6•cedric_h•5m ago•0 comments

Direct SQL access to over 286B crypto trades

https://koinju.io/crypto-market-data-api
5•knazim•9m ago•1 comments

Israel's AI targeting system: How data from a phone become a death sentence

https://www.latimes.com/world-nation/story/2026-05-04/inside-israels-ai-targeting-system-how-data...
2•rufasterisco•9m ago•0 comments

Show HN: AgentBrain – local-first Markdown/JSON vault for AI agents

https://agentbrain.heroka.xyz
1•pitashi•9m ago•0 comments

How Google achieved 6x faster migration from TensorFlow to Jax

https://cloud.google.com/blog/topics/developers-practitioners/6x-faster-migration-from-tensorflow...
1•ilreb•10m ago•0 comments

Apples settles lawsuit about Siri AI, iPhone users can get $25-$95 each

https://www.theverge.com/tech/924706/apple-iphone-siri-intelligence-class-action-lawsuit-settlement
2•pzxc•12m ago•1 comments

Amp, Rebuilt

https://ampcode.com/news/neo
5•tosh•12m ago•0 comments

The Reliability Race

https://twitter.com/jdroege/status/2052049364579659849
1•pretext•12m ago•0 comments

OpenTelemetry Signals from First Principles

https://kodraus.github.io/opentelemetry/2026/05/04/otel-first-principles.html
1•birdculture•13m ago•0 comments

What you're writing when you write a SKILL.md

https://internals.laxmena.com/p/what-youre-actually-writing-when
1•gmays•14m ago•0 comments

Canadian Privacy Commissioners' Investigation into OpenAI

https://www.priv.gc.ca/en/opc-actions-and-decisions/investigations/investigations-into-businesses...
2•bparsons•14m ago•0 comments

Wi is Fi: Understanding Wi-Fi 4/5/6/6E/7/8 (802.11 n/AC/ax/be/bn)

https://www.wiisfi.com/
1•homebrewer•15m ago•0 comments

Securing CI/CD for an open source project

https://cilium.io/blog/2026/05/06/securing-cicd-open-source-lessons-from-cilium/
1•aanm__•15m ago•0 comments

From Probable to Provable: What Automated Reasoning Means for the Board

https://mariothomas.com/blog/automated-reasoning-explainer/
1•baruchel•17m ago•0 comments

Show HN: Tilde.run – Agent Sandbox with a Transactional, Versioned Filesystem

https://tilde.run/
13•ozkatz•18m ago•2 comments

First Public Working Draft: CBOR-LD 1.0

https://www.w3.org/news/2026/first-public-working-draft-cbor-ld-1-0/
1•gslin•20m ago•0 comments

Creating an animated manga with GPT Image 2.0 and Claude Code

https://groverburger.xyz/notes/2026-04-27-mangamotion/
2•__grob•21m ago•0 comments

All means are fair except solving the problem

https://yosefk.com/blog/all-means-are-fair-except-solving-the-problem.html
2•akkartik•24m ago•1 comments

Show HN: Costanza – an autonomous AI agent that can't be turned off

https://ahrussell.com/writing/costanza/
3•aruss•26m ago•1 comments

The Android Show – I/O Edition – one of the biggest years for Android yet

https://www.android.com/new-features-on-android/io-2026/
1•koeliga•26m ago•0 comments

I Tried Out a $60 Capsule Hotel in Honolulu: No Door, No Bathroom, No Problem

https://www.wsj.com/lifestyle/travel/i-tried-out-a-60-capsule-hotel-in-honolulu-no-door-no-bathro...
1•lxm•27m ago•0 comments

OpenAI unveils protocol to stretch compute

https://www.thedeepview.com/articles/exclusive-openai-unveils-protocol-to-stretch-compute
1•mhandley•27m ago•0 comments

Built a real-time bird tracking station to combat my burnout

https://alec.is/birds/
3•arm32•27m ago•0 comments

California has six voting groups beyond just Democrat or Republican

https://www.sfchronicle.com/projects/2026/california-political-groups/
2•littlexsparkee•27m ago•0 comments

Maramaps – Turn Strava activities into map art for your socials

https://maramaps.com/
1•buttertoast•27m ago•0 comments

Claude elevated errors across multiple models

https://status.claude.com/incidents/437swp24nrf4
5•SunshineTheCat•27m ago•0 comments