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?

Deshittification as a Service: Reclaiming Privacy and Performance with OpenBSD

https://fabricati-diem.inform.social/post/deshittification-as-a-service/
1•tempodox•1m ago•0 comments

How an AI agent beat Universal Paperclips in 1:21:23 (WR was 1:33:42)

https://universal-paperclips-ai.netlify.app/
1•arthur-G•1m ago•0 comments

Stop being the code review bottleneck

https://newsletter.posthog.com/p/code-review-tips
1•fagnerbrack•2m ago•0 comments

US District Court Decision in AI's Favor Worries Open-Source Developers

https://devops.com/us-district-court-decision-in-ais-favor-worries-open-source-developers/
1•CrankyBear•8m ago•0 comments

Show HN: Judge HN Threads with Jev

https://hnjudge.vercel.app
1•rishi_•9m ago•0 comments

How Blacksmith runs more than 10M CI jobs a day

https://www.blacksmith.sh/blog/how-blacksmith-runs-10-million-jobs-per-day
4•aayushshah15•9m ago•0 comments

Explaining the Postgres Meme

https://avestura.dev/blog/explaining-the-postgres-meme
1•gregsadetsky•10m ago•0 comments

Small AI models let drones autonomously identify and attack battlefield targets

https://arstechnica.com/ai/2026/09/nato-backed-startup-adapts-ai-for-autonomous-drone-recon-and-a...
1•rbanffy•10m ago•0 comments

Googlebook OS hands-on: It's Android, stupid

https://9to5google.com/2026/09/21/googlebook-os-hands-on/
2•xnx•10m ago•0 comments

Using Jev as an LLM Linter for OMP (Pi) Agent

https://github.com/goulinkh/omp-semantic-policy
1•goulinkh•10m ago•0 comments

The current balance of power in open models

https://www.interconnects.ai/p/the-current-balance-of-power-in-open
1•pretext•12m ago•0 comments

Goodnotes releases new AI notetaker

https://goodmeet.com/
3•ominous_debris•12m ago•1 comments

Grok 4.7

https://x.ai/news/grok-4-7
9•meetpateltech•13m ago•1 comments

Automatically Retrofitting JIT Compilers

https://www.infoq.com/presentations/yk-meta-tracing-jit-compiler/
1•cpeterso•14m ago•0 comments

Show HN: Replay an AI Coding Session and Inspect Its Requests

https://ishamf.dev/p/agent-harness-replay/
1•ifz•17m ago•0 comments

A restored PDP-11/83 serving this page on 211BSD Unix

http://pdp1173.com/
1•davepl•18m ago•1 comments

Ask HN: What is the most interesting project you are working on?

3•skwasimin•20m ago•1 comments

Show HN: All of FreeCAD 1.1.3, every workbench and FEM, running in the browser

https://freecad.virtastic.app/
2•dumpstertechops•20m ago•0 comments

46% of Open-Source AI Agents dropped from rankings in 28 weeks

https://www.theagenticleaderboard.com/
1•theagenticleade•20m ago•1 comments

Goolsbee: The Fed Can't Keep Waiting Out Oil Shocks

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-09-21-2026/card/goolsbee-th...
3•kaycebasques•23m ago•1 comments

Design Drought

https://lmnt.me/blog/design-drought.html
1•surprisetalk•23m ago•0 comments

Show HN: Timewaster – They waste your time. Return the favor

https://timewasterapp.com/
1•JackWritesCode•24m ago•0 comments

IvoryOS – Orchestrate an Autonomous Lab

https://ivoryos.ai/
1•eustoria•24m ago•0 comments

Show HN: 7 Coder Words – A puzzle game for computer science nerds

https://kenamick.itch.io/7-coder-words
1•p2detar•26m ago•0 comments

I shipped 2,000 pull requests through production last month [video]

https://twitter.com/poteto/status/2102050467505430555
1•nomilk•26m ago•0 comments

You Can Detect If Code Is Being Run Inside a Terminal

https://nelson.cloud/you-can-detect-if-code-is-being-run-inside-a-terminal/
1•eustoria•26m ago•0 comments

We Have So Many Questions

https://lab.cloud/news/we-have-so-many-questions/
2•aliasaria•26m ago•0 comments

Pinned-Value Goods

https://arun.is/blog/pinned-value-goods/
2•ddrmaxgt37•27m ago•0 comments

Using TypeSafe AI in Bug Bounty

https://www.lampysecurity.com/post/using-typesafe-ai-in-bug-bounty
1•lampysecurity•29m ago•0 comments

Tobi: Persistent terminal sessions across your devices

https://tangled.org/ptr.pet/tobi
2•nerdypepper•30m ago•0 comments