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?

MariaDB: Promote getting to 10k GitHub stars in server log and client prompt

https://github.com/MariaDB/server/pull/4262
1•petecooper•1m ago•1 comments

Get a macOS notification when Codex CLI needs input

https://github.com/foxtrotdev/codex-butler-bell
1•zeetyy404•2m ago•0 comments

Encoding or Compression: Why not both?

https://cedardb.com/blog/encoding_vs_compression/
1•eatonphil•2m ago•0 comments

Peter H. Diamandis, MD on X: "Why SpaceX Will Be the First $10T Company" / X

https://twitter.com/PeterDiamandis/status/2084645799942582360
1•bilsbie•3m ago•0 comments

FARA 7649 Informational Materials

https://www.bitchute.com/update_video/N63Itv0Vb4wY
1•untiledsource•3m ago•0 comments

You can't prompt your way into policy

https://jeffauriemma.leaflet.pub/3msbfyqckyk2u
1•jdauriemma•3m ago•0 comments

Coinage – every dollar invested until the second you spend it

https://apps.apple.com/us/app/coinage-invest/id6751078498
1•nandhd•4m ago•0 comments

Agon – A coliseum for AI coding models

https://github.com/KERNlang/agon
1•markgavalda•5m ago•0 comments

X latest to block Saudi dissident accounts inside kingdom

https://www.theguardian.com/technology/2026/aug/04/x-twitter-blocks-dissident-accounts-saudi-arabia
3•n1b0m•5m ago•0 comments

Ukraine's Fire Point is integrating European tech into missile defence system

https://www.reuters.com/business/aerospace-defense/ukraines-fire-point-starts-integrate-european-...
2•JumpCrisscross•7m ago•0 comments

Testing Used LFP Cells Requires Some Automation

https://hackaday.com/2026/08/04/testing-hundreds-of-used-lfp-cells-requires-some-automation/
1•toomuchtodo•7m ago•1 comments

FlareStarter – edge-native SaaS starter on TanStack Start and Cloudflare

https://flarestarter.com/
1•beilunyang•8m ago•0 comments

JD Vance: How I Joined the Resistance (2020)

https://thelampmagazine.com/blog/how-i-joined-the-resistance
2•geneticdrifts•9m ago•0 comments

Diamond industry misjudged threat of lab-grown gems, says Anglo American CEO

https://www.ft.com/content/e171131f-e68d-481c-afc4-48f70d51e08a
2•JumpCrisscross•9m ago•0 comments

Autoresearch isn't just for training models (2026)

https://shopify.engineering/autoresearch
1•doppp•9m ago•0 comments

When AI Benchmarks Plateau: A Systematic Study of Benchmark Saturation

https://arxiv.org/abs/2602.16763
2•doppp•11m ago•0 comments

Thresholds: Why Two Nearly Identical Crowds Do Opposite Things

https://theholbrookreport.com/reports/thresholds-and-collective-behavior/
1•TyrunDemeg101•12m ago•0 comments

FARA 7649 Foreign Influence Audit

https://www.bitchute.com/video/IRfICXureUeW/
1•untiledsource•13m ago•0 comments

Performing live migrations of VMs at scale

https://www.sailresearch.com/blog/performing-live-migrations-of-massive-vms-at-scale
1•blintz•13m ago•0 comments

The applause that disrupted nothing – yet still led to an arrest

https://expression.fire.org/p/the-applause-that-disrupted-nothing
3•timr•13m ago•0 comments

Most countries provide between 20 and 40 paid days off

https://www.not-ship.com/not-ship-summer-vacation/
1•speckx•15m ago•0 comments

Flyte 2 is GA: durable distributed AI workflows using regular Python

https://www.union.ai/blog-post/flyte-2-is-generally-available-the-durable-open-source-ai-runtime
7•kumare3•16m ago•0 comments

How mathematicians are responding to AI

https://www.understandingai.org/p/mathematicians-are-grappling-with
4•chiwilliams•17m ago•0 comments

Mixture-of-Kittens: our open-source MoE megakernel for NVL72s

https://cursor.com/blog/mixture-of-kittens
4•mfiguiere•19m ago•0 comments

Steffen Boarding Method

https://en.wikipedia.org/wiki/Steffen_Boarding_Method
1•thunderbong•19m ago•0 comments

NPM's keyv package got compromised having 127M weekly downloads

https://safedep.io/keyv-npm-supply-chain-compromise/
2•birdculture•20m ago•2 comments

Why Netcup Isn't in the Webbynode Dataset

https://webbynode.com/articles/why-netcup-isnt-in-the-webbynode-dataset
1•gsgreen•20m ago•0 comments

The Dynamics of the Egg

https://www.the-hinternet.com/p/the-dynamics-of-the-egg
1•Caiero•21m ago•0 comments

Why remote roles are region specific and not 100% remote?

1•moizrocky1•21m ago•2 comments

An LLM attacked our lab so we made it work for us

https://jesta.ai/blog/darkreasoning
1•nirga•22m ago•0 comments