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?

Show HN: Find the jobs that fit your resume in 60 seconds

https://www.seekerscore.com
1•not_wowinter14•1m ago•0 comments

ChatGPT Desktop (Codex Desktop) for Linux

https://openai.com/codex/
2•allanrbo•5m ago•0 comments

Size and Lifespan

https://xkcd.com/3283/
3•dgudkov•6m ago•0 comments

Vibe Coding Interview

http://funcall.blogspot.com/2026/08/vibe-coding-interview.html
3•zombot•7m ago•1 comments

Ratings Firm Accused of Grade Inflation Vouched for $40B of Insurer Debt

https://www.wsj.com/finance/ratings-firm-accused-of-grade-inflation-vouched-for-40-billion-of-ins...
4•petethomas•16m ago•0 comments

Patterns and problems in emerging multiagent systems

https://www.anthropic.com/research/multiagent-systems
3•ledoge•18m ago•0 comments

BrowserMesh – isolated Playwright sessions for MCP clients

https://github.com/scrollDynasty/multi-agent-browser-mcp
3•scroll11•21m ago•0 comments

Celld: Self-hosted, distributed Durable Objects

https://celld.dev/
4•godisdad•21m ago•0 comments

CFTC Advisory on Self-Certification of Incentive Programs for Prediction Markets

https://www.cftc.gov/PressRoom/PressReleases/9282-26
4•petethomas•23m ago•0 comments

Living with Depression: The Part I Never Say Out Loud

https://medium.com/freedomofthought/living-with-depression-the-part-i-never-say-out-loud-3e9c218b...
4•raynchad•23m ago•0 comments

What Kind of Particularism?

https://medium.com/freedomofthought/what-kind-of-particularism-489c113a8a9c
3•raynchad•24m ago•0 comments

Lossless codec for AI agent messages – 36% fewer tokens, overhead counted

https://github.com/reh8n/a2acompress
3•reh8n•25m ago•0 comments

Who invented the great numerical algorithms? [pdf]

https://math.pku.edu.cn/teachers/litj/notes/numer_anal/inventorstalk.pdf
3•nill0•26m ago•0 comments

My First Post

3•VimalRB•27m ago•0 comments

Show HN: CoreTrace, a visual 16-bit CPU simulator

https://coretrace.srianjaneyam.me/
4•mr-anjaneyam•40m ago•1 comments

AI to Kids by Letting Them Tweak Local Chatbots [video]

https://www.youtube.com/watch?v=fNkt41q7eqs
4•dbreunig•45m ago•0 comments

Rsync 3.5 Released as "Extraordinary" Update to Fix 33 Security Issues

https://www.phoronix.com/news/Rsync-3.5
4•Bender•45m ago•0 comments

Long Story Short: Daily word game

https://gizmodo.com/long-story-short-wants-to-be-the-wordle-of-editing-bad-sentences-2000797842
3•akashwadhwani35•47m ago•0 comments

General Dynamics Failed to Build Artillery Shells for the Army

https://www.propublica.org/article/general-dynamics-artillery-factory-failed
5•colinprince•50m ago•0 comments

Is Bending Spoons Good for Startups?

https://s-1.vercel.app/posts/bending-spoons-a-capital-cycle-play/
4•Altaba•50m ago•0 comments

Show HN: UTC Time - live clock, ISO 8601, Unix timestamp

https://utctime.app/
6•nadermx•55m ago•0 comments

DeepSeek V4 Pro 0813: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/deepseek-v4-pro
4•theanonymousone•56m ago•0 comments

Install Manticore Search with one command

https://medium.com/@s_nikolaev/install-manticore-search-with-one-command-8ab5ba07a06b
3•snikolaev•1h ago•0 comments

Specula: Scaling formal specs for autonomous model checking of system code

http://muratbuffalo.blogspot.com/2026/08/specula-scaling-formal-specifications.html
3•matt_d•1h ago•0 comments

16GB EGPU for AI Inference, $699

https://www.amazon.com/GIGABYTE-Graphics-128-bit-Server-Grade-Thunderbolt/dp/B0GKFHSPN8
4•shrubble•1h ago•3 comments

Show HN: I asked Claude to write DDIA as a live comic

https://systemscomic.com/ddia/read
5•samuelxing•1h ago•0 comments

How the smiley face was born

https://www.history.com/articles/smiley-face-history
4•inatreecrown2•1h ago•0 comments

Edge is dropping older extensions(Manifest V2), affecting popular privacy tools

https://www.malwarebytes.com/blog/news/2026/08/edge-is-dropping-older-extensions-affecting-popula...
10•BearBest•1h ago•1 comments

You're Absolutely Right

https://www.lesswrong.com/posts/u8TdDutDyaSxG76hn/you-re-absolutely-right
3•LinchZhang•1h ago•1 comments

Show HN: Rule-lite – Tiny dependency-free TS engine for JSON conditional rules

https://github.com/tejas821/rule-lite
2•tejas821•1h ago•0 comments