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?

We Stopped Going to the Movies

https://www.statsignificant.com/p/why-we-stopped-going-to-the-movies
1•speckx•1m ago•0 comments

Deep Learning: Searching for a Function

https://fazamhd.com/mental-models/deep-learning/
1•faza•2m ago•0 comments

Dassault Systemes to Buy ArisGlobal for Up to $2B

https://www.wsj.com/health/dassault-systemes-to-buy-arisglobal-for-up-to-2-billion-82aecb9a
1•N_A_T_E•2m ago•0 comments

Show HN: ZeroGate – Fast, account-free visual CSV matching without AI

https://zerogate.cloud
1•ngarner•3m ago•0 comments

Kitty – Terminal Graphics Protocol

https://sw.kovidgoyal.net/kitty/graphics-protocol/
1•peter_d_sherman•3m ago•0 comments

The Avocados That May Save Us from a Guacamole Apocalypse

https://nautil.us/the-avocados-that-may-save-us-from-a-guacamole-apocalypse-1282897
1•Brajeshwar•4m ago•0 comments

Stop Prompting, Start Looping

https://lanes.sh/blog/loop-engineering-with-lanes
3•s-xyz•5m ago•0 comments

Show HN: Triton-blackhole – debug Triton FP drift without device_print

https://github.com/brian-mwirigi/triton-blackhole
1•nesh23•7m ago•0 comments

How I Made Servers Invincible to Hangs

https://blog.nassella.org/how-i-made-servers-invincible-to-hangs/
1•thecombjelly•10m ago•0 comments

Show HN: Static libvips builds, pick only the formats you need

https://github.com/libstatic/libvips
1•u84u•10m ago•0 comments

Is open-weight AI banned yet?

https://isopenweightaibannedyet.com/
2•mihau•11m ago•0 comments

Show HN: HimitsuShell – DRM for Shell Scripts with Obfuscation

https://github.com/HimitsuShell/Himitsu
2•mushstory•11m ago•0 comments

JEP 540: Simple JSON API (Now in Incubator)

https://openjdk.org/jeps/540
2•theanonymousone•11m ago•0 comments

If Anyone Builds It, Everyone Dies

https://en.wikipedia.org/wiki/If_Anyone_Builds_It,_Everyone_Dies
2•artembugara•12m ago•0 comments

Four Young Mathematicians Receive Prestigious Fields Medals

https://www.nytimes.com/2026/07/23/science/fields-medals-pardon-deng-wang-tsimerman.html
2•sonabinu•15m ago•0 comments

The Lakehouse Format Is an Engine Contract

https://lakesail.com/blog/lakehouse-engine-contract/
1•eveerett•15m ago•0 comments

Show HN: Convert GLB, OBJ, and STL Models to SVG In-Browser

https://greglinscheid.com/tools/3d-to-svg/
1•vilos1611•18m ago•1 comments

Ayghri/I-have-ADHD: skill for coding agent to stop it from burying the answer

https://github.com/ayghri/i-have-adhd
1•ulrischa•18m ago•0 comments

I Built a FreeBSD Cloud to Use with FreeBSD

https://interfacecraft.online/blog/2026/i-built-a-freebsd-cloud-to-use-with-freebsd/
1•speckx•18m ago•0 comments

LLMs will make scientists do more, less well

https://arxiv.org/abs/2607.17397
2•porteclefs•19m ago•0 comments

AI helps scientists design the next generation of medicines

https://www.technologyreview.com/2026/07/23/1140346/how-ai-helps-scientists-design-the-next-gener...
1•Brajeshwar•19m ago•0 comments

I Build Faster

https://timleland.com/how-i-build-faster-with-ai-screenshots-and-voice/
1•TimLeland•19m ago•0 comments

The Subagent Tax

https://systima.ai/blog/subagent-tax
1•systima•23m ago•0 comments

Cognition Acquires Poke Creators, the Interaction Company

https://cognition.com/blog/interaction
2•EvanZhouDev•23m ago•0 comments

Show HN: Remortgaging with Claude, so I built a MCP for Bank of England

https://github.com/moureauf/boe-mcp
2•aksworbuz•23m ago•0 comments

Show HN: A Chrome extension for LeetCode that gives Socratic hints in a side

https://leetcopilot.dev
1•alexwang24•25m ago•1 comments

2026 Fields Medals Awarded to Four of Top Mathematicians

https://www.simonsfoundation.org/2026/07/23/2026-fields-medals-awarded-to-four-of-worlds-top-math...
1•HiPHInch•25m ago•0 comments

Free way to get your data out of ChatGPT Business accounts

https://github.com/Conradqh/scrapemychats
9•conradqh•27m ago•2 comments

Docs as the source of truth for coding agents

https://github.com/synlace/project-docs
3•rascal999•27m ago•0 comments

Our Blog Post Runs a TCP Stack

https://apoxy.dev/blog/netstack-bbrv3
1•dilyevsky•28m ago•0 comments