frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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?

Florida sues OpenAI and Sam Altman over marketing ChatGPT despite serious risks

https://fortune.com/2026/06/01/florida-sues-openai-ceo-sam-altman-chatgpt-safety-warnings/
1•1vuio0pswjnm7•4m ago•0 comments

A tale of two weekend projects

https://csmeyer.substack.com/p/a-tale-of-two-weekend-projects
2•csmeyer•9m ago•0 comments

Jenesis – A modern Java build tool

https://github.com/raphw/jenesis/tree/main/demo
1•raphw•11m ago•1 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
2•setheron•11m ago•0 comments

The architect who became the king of bank robberies

https://thehustle.co/the-architect-who-became-the-king-of-bank-robberies
3•rmason•12m ago•0 comments

For Goldman's Top Bankers, It's All AI Data Centers All the Time

https://www.bloomberg.com/news/articles/2026-06-01/for-goldman-s-top-bankers-it-s-all-ai-data-cen...
1•1vuio0pswjnm7•13m ago•0 comments

Natural tissue immortality: Indefinite survival of sea cucumber explants

https://www.science.org/doi/10.1126/sciadv.aeb1394
1•bookofjoe•14m ago•0 comments

The MCP Context Tax – Notes from Running 605 Tool Packs

https://pipeworx.io/blog/mcp-context-tax-tool-routing/
1•pipeworx•14m ago•0 comments

Speech Studio – I open-sourced a local voice cloning Mac app (free, no API keys)

https://old.reddit.com/r/SideProject/comments/1tu78nn/speech_studio_i_opensourced_a_local_voice_c...
1•ipotapov•16m ago•1 comments

Hatch: Write agent rules/skills once, generate for all

https://github.com/grafana/hatch
1•matryer•16m ago•0 comments

The SpaceX Squeeze

https://www.bloomberg.com/opinion/newsletters/2026-06-01/the-spacex-squeeze
2•davidw•16m ago•0 comments

We built a 12-step verification pipeline. It caught zero real errors

https://www.inc.com/heather-wilde/before-you-let-ai-run-your-business-read-this/91327205
2•bobrenze•17m ago•0 comments

I tracked 68 automation metrics. Only 3 changed my behavior

https://www.inc.com/heather-wilde/4-tech-strategies-revolutionizing-business-operations.html
1•bobrenze•18m ago•0 comments

NeuROK: Generative 4D Neural Object Kinematics

https://chen-geng.com/neurok
1•ychidken•19m ago•0 comments

Repo explainer – For coders that can't read good

https://repo-explainer.com/
3•seahorsecastle•20m ago•3 comments

Why Are Human Teeth So Messed Up? (2017)

https://www.sapiens.org/biology/human-teeth-evolution/
2•downbad_•26m ago•0 comments

Famous Photo of Chernobyl's Dangerous Radioactive Material Was a Selfie (2016)

https://www.atlasobscura.com/articles/elephants-foot-chernobyl
2•downbad_•26m ago•0 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
6•typpo•29m ago•0 comments

AI's reality check has arrived

https://www.fastcompany.com/91551700/ais-reality-check-has-finally-arrived
2•1vuio0pswjnm7•35m ago•0 comments

Terrascan: Explore public deep earth scan datasets

https://terrascan.bowd.io
3•bowd•36m ago•1 comments

AI Grifters Are Making Anti-Data Center Slop with AI

https://www.404media.co/ai-grifters-are-making-anti-data-center-slop-with-ai/
4•cdrnsf•37m ago•0 comments

The Principal IC Moat

https://jchigg2000.dev/#blog/the-principal-ic-moat
1•jchigg2000•39m ago•0 comments

Riding a Spitfire: The Story of Margaret Horton

https://rafa.org.uk/blog/2021/03/08/magaret-horton/
1•omnibrain•39m ago•0 comments

Show HN: Dataroom – a Pi and self-hosted research harness on low-budget GPU

https://github.com/hanxiao/dataroom
2•artex_xh•43m ago•0 comments

Random cat GIFs, every few mins

https://kevinhwong.com/cats-appear
1•kevinwong•43m ago•1 comments

Om Malik – Clothes Are Nice. Fashion Biz, Not as Much

https://om.co/2026/06/01/clothes-are-nice-fashion-biz-not-as-much/
1•rmason•44m ago•1 comments

Show HN: A trend and monthly viewer of the monthly Ask HN: Who's Hiring?

https://hacker-hirings.com
1•awacs•44m ago•0 comments

UtilYard – 55 free browser-based tools (calculators, dev utilities, image tools)

https://utilyard.com
1•mshrod•45m ago•0 comments

Maxime Guillaume patented the axial turbojet in 1921

https://en.wikipedia.org/wiki/Maxime_Guillaume
2•Gravityloss•46m ago•0 comments

Resolving Feynman restaurant problem reveals optimal solutions&human strategies

https://www.pnas.org/doi/full/10.1073/pnas.2509612123
1•bookofjoe•47m ago•0 comments