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?

Gemini 3.7 Flash

https://ai.google.dev/gemini-api/docs/models/gemini-3.7-flash
1•thisisauserid•41s ago•0 comments

JDK 27 G1/Parallel/Serial GC Changes

https://tschatzl.github.io/2026/08/10/jdk27-g1-serial-parallel-gc-changes.html
1•0x54MUR41•1m ago•0 comments

Why Google Killed Its Best Argument for AI

https://www.hardresetmedia.com/p/why-google-killed-its-best-argument
1•pac0•1m ago•0 comments

From slow tests to slow production: Debugging with Stackprof

https://www.aha.io/engineering/articles/debugging-with-stack-prof
2•FigurativeVoid•2m ago•0 comments

Nine PBS sues Iron Mountain over blocked access to archival data

https://current.org/2026/08/nine-pbs-sues-iron-mountain-over-blocked-access-to-archival-data/
1•simonpure•3m ago•0 comments

Why and how to check your SSDs Trim correctly

https://eclecticlight.co/2026/08/13/why-and-how-to-check-your-ssds-trim-correctly/
2•Brajeshwar•3m ago•0 comments

Groupon founder Andrew Mason's farewell letter to employees (2013)

https://www.theguardian.com/technology/blog/2013/mar/01/groupon-andrew-mason-fired-letter
3•bobbiechen•4m ago•0 comments

Chasing an Elusive Rails SSE Bug/Hang

https://www.babylist.com/engineering/blog/rails-sse-hang
1•wpeterson•7m ago•0 comments

SpaceXAI debuts Grok 4.6, overtaking Kimi K3's and matching GPT-5.6 Sol

https://tracking.tldrnewsletter.com/CL0/https:%2F%2Fventurebeat.com%2Ftechnology%2Fspacexai-debut...
1•countbinface•7m ago•0 comments

Tocharian Online

https://lrc.la.utexas.edu/eieol/tokol/0
3•Bluestein•8m ago•0 comments

Runta SSH access for agent runtimes

https://runta.com/blog/ssh-access-for-runta-runtimes/
4•shiqimei•8m ago•0 comments

Anthropic in talks to buy Decart AI for $6B

https://www.reuters.com/technology/anthropic-talks-buy-decart-ai-source-says-2026-08-13/
3•adamhowell•10m ago•0 comments

Natural Language Processing (NLP) Explained – AI and Human Language

https://bytetality.com/reviews/86-natural-language-processing-nlp-explained-ai-human-language
3•lava-doe•11m ago•0 comments

Scientists Taught Living Brain Cells to Play a Game

https://www.rathbiotaclan.com/cultured-neurons-improve-at-simplified-pong-under-closed-loop-feedb...
2•Akasci•12m ago•0 comments

Before You Add Another Class, Make the Time Slot Prove Itself

https://www.usemojo.app/en/blog/test-a-new-class-time-slot
2•usemojoapp•12m ago•0 comments

A Preview of Roc 0.1.0 by Richard Feldman

https://www.youtube.com/watch?v=a7qEOtkkDb8
2•birdculture•13m ago•0 comments

UEFA takes inspiration from EU in plan to oust Gianni Infantino and reform FIFA

https://www.independent.co.uk/sport/football/gianni-infantino-news-latest-fifa-uefa-b3032292.html
2•vrganj•13m ago•0 comments

Your Coding Agent Keeps a Diary

https://www.sfrt.io/your-coding-agent-keeps-a-diary/
2•tosh•13m ago•0 comments

Rails Is Built for AI

https://rubyonrails.org/ai
5•cdnsteve•14m ago•0 comments

Trump's 401(k) Proposal Shows Evidence of Phony Public Support

https://www.bloomberg.com/news/features/2026-08-13/trump-401-k-proposal-shows-signs-of-phony-supp...
3•petethomas•15m ago•0 comments

Mistral lab started to sell competitors models in its inference platform

https://mistral.ai/news/regional-inference-open-models-new-compute/
2•samber•16m ago•0 comments

How U.S. Navy Pilots Really Get Their Callsigns

https://www.twz.com/how-u-s-navy-pilots-really-get-their-callsigns
2•bushwart•16m ago•0 comments

UK Train Derails

https://www.bbc.co.uk/news/live/cly5252xqdvt
3•m4tthumphrey•16m ago•0 comments

The SvelteKit 3 Release Candidate is here

https://svelte.dev/blog/sveltekit-3-release-candidate
2•pier25•16m ago•0 comments

Show HN: Deepmark – Search your bookmarks by what's inside them, not the title

https://usedeepmark.com/
2•shafkathullah•18m ago•0 comments

Mistral OCR 4.1

https://docs.mistral.ai/models/ocr-4-1
2•spelk•18m ago•0 comments

Rob Pike Received the 2026 Usenix Lifetime Achievement Award

https://www.usenix.org/about/awards/flame
4•jervant•19m ago•0 comments

Headless Xcode: From Prompt to Simulator with MCP

https://artemnovichkov.com/blog/headless-xcode-from-prompt-to-simulator-with-mcp
2•artemnovichkov•19m ago•0 comments

Russian ransomware group Clop claims cyberattacks on Shell and Philips

https://nltimes.nl/2026/08/13/russian-ransomware-group-clop-claims-cyberattacks-shell-philips
2•TechTechTech•20m ago•0 comments

Typed WebSocket Realtime in Point0, a TypeScript Framework on Bun and React

https://1gr14.dev/blog/point0-socket
2•1gr14•20m ago•0 comments