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?

Animal Husbandry Machines of Loving Grace

https://www.jenn.site/animal-husbandry-machines-of-loving-grace/
1•surprisetalk•55s ago•0 comments

Langweilig

1•Langweilig•2m ago•0 comments

'Gulags in the sky': The crime against humanity the US isn't talking about

https://www.inquirer.com/opinion/us-ice-flight-colombia-deportees-inhumane-conditions-violence-20...
1•akkartik•2m ago•0 comments

Shiraz – Run Android apps natively without a VM or Android image

https://github.com/spectre-oss/shiraz
1•wicket•4m ago•1 comments

Corruption and the Fall of the American Empire

https://paulkrugman.substack.com/p/corruption-and-the-fall-of-the-american
2•docshock•5m ago•1 comments

Anthropic Builds Software in 2026

https://newsletter.pragmaticengineer.com/p/how-anthropic-builds-software-in
2•sogoh•5m ago•0 comments

Are Passkeys Quantum Safe?

https://www.corbado.com/blog/are-passkeys-quantum-safe
1•vdelitz•6m ago•0 comments

A New Chapter at Twitch

https://blog.twitch.tv/en/2026/12/03/a-new-chapter-at-twitch/
2•Garbage•6m ago•0 comments

Show HN: Serra – run your coding agents from Slack, Telegram, Discord or ClickUp

https://github.com/isacssw/serra
2•isacbuilds•10m ago•0 comments

Iroh, the NSA and PQC

https://www.iroh.computer/blog/iroh-the-nsa-and-pqc
1•renehsz•10m ago•0 comments

A US-China Net Assessment in AI Compute

https://techstatecraft.org/compute/
1•atlasunshrugged•12m ago•0 comments

Show HN: Unit Converter – keyboard and screen reader friendly

1•cataConst•13m ago•0 comments

Show HN: Claude Code hooks that stop agents from reading secret values

https://github.com/alittlenerdy/claude-code-safety-hooks
1•j1mmyhackett•13m ago•1 comments

We scanned 47 AI coding companies; 1 in 5 ships a retired AI model

https://www.qurren.com/reports/ai-companies-ship-retired-models
1•danlboross•15m ago•0 comments

Black-forest-labs/flung-8B language flow transformer

https://huggingface.co/black-forest-labs/flung-8b
2•trentor•16m ago•0 comments

Show HN: InstantTally – Fast iOS expense tracker (receipt/voice/photo)

https://instanttally.com/en/
1•shrektan•17m ago•0 comments

Tokens to root cause: AI agent costs on Grafana LGTM, ClickHouse and Parseable

https://www.parseable.com/blog/total-tokens-to-root-cause
2•pkb_98•19m ago•1 comments

Autonomous Testing with Time-Traveling Agents in a Chaotic Multiverse [video]

https://www.youtube.com/watch?v=SFs2oOh-TUE
1•surprisetalk•20m ago•0 comments

Preprints are surging: how will science deal with the deluge?

https://www.nature.com/articles/d41586-026-03881-8
3•bookofjoe•20m ago•1 comments

MojoSplat: 3D Gaussian Splatting, training and rendering, written in Mojo

https://github.com/bertaveira/mojosplat
1•torutofu•21m ago•0 comments

PostgreSQL Branching for Amazon Aurora

https://aws.amazon.com/about-aws/whats-new/2026/12/aurora-postgresql-branching-preview/
1•thisisauserid•24m ago•0 comments

El Niño warming spell is strongest ever recorded: UN

https://phys.org/news/2026-12-el-nio-strongest.html
2•dnetesn•25m ago•0 comments

Bohr on Biology: Niels Bohr wondered if life was beyond physics

https://blue-continuum.com/niels-bohr-wondered-if-life-was-beyond-physics
1•dnetesn•27m ago•0 comments

HPE Hybrid Cloud biz burns through quarterly AI budget in a month

https://www.theregister.com/ai-and-ml/2026/12/04/hpe-hybrid-cloud-biz-burns-through-quarterly-ai-...
1•beardyw•27m ago•0 comments

Show HN: I made a free directory to find the best X Articles by topic

https://directory.tweet-brain.com
1•imranshah10140•28m ago•0 comments

Fears over OpenAI missing revenue targets prompt tech sell-off

https://www.theguardian.com/technology/2026/dec/04/openai-missing-revenue-targets-tech-sell-off
4•jcolot•28m ago•0 comments

Claude-coded camera hacks. How safe? And what will be the response of companies?

https://www.eoshd.com/uncategorized/claude-coded-camera-hacks-how-safe-and-what-will-be-the-respo...
1•10729287•29m ago•0 comments

Tellgan – AI Cost Tracking

https://www.tellgan.com/
1•JakeDuke•31m ago•0 comments

Show HN: Free date, word, number, address and currency tools, no signup

https://daytoolkit.com/
1•rvsdistributors•34m ago•2 comments

Show HN: 12-Month Email Marketing TCO Calculator (list growth and tier jumps)

https://martechpricing.com/tools/email-tco-calculator/
1•applesstt•35m ago•0 comments