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: Pacer – will your AI coding subscription last until the reset?

https://github.com/dkremsa/claude-pacer
1•dkremsa•5s ago•0 comments

AI Changed the Team, Not the Process

https://www.compile.la/ai-changed-the-team-not-the-process/
1•dalfonso•17s ago•0 comments

Language-model ratings of depression reflect the rater more than the patient

https://arxiv.org/abs/2610.08501
1•sbulaev•3m ago•0 comments

An Upper Bound of 9/4 for the Matrix Multiplication Exponent [pdf]

https://github.com/openai/math/blob/main/preprints/Matrix-Multiplication-Nine-Fourths-October-2-2...
1•theanonymousone•3m ago•0 comments

In Defense of White Chocolate

https://www.gourmetboutique.net/blogs/tasting-room/17250051-in-defense-of-white-chocolate
1•JumpCrisscross•5m ago•0 comments

I Will Wait

https://throwawaythoughts.blog/
1•campbellman•17m ago•0 comments

Alang Ship Breaking Yard

https://en.wikipedia.org/wiki/Alang_Ship_Breaking_Yard
1•vismit2000•19m ago•0 comments

Self-Modeling Interventions Modulate Emergent Misalignment

https://www.lesswrong.com/posts/7wrzfaiCq3u8xkY5G/self-modeling-interventions-modulate-emergent-m...
2•gmays•22m ago•0 comments

Towards Efficient HPC Systems for Agents: Challenges and Opportunities

https://arxiv.org/abs/2609.38723
1•matt_d•22m ago•0 comments

The Science That Has Oil Companies Running Scared

https://www.nytimes.com/2026/10/06/opinion/oil-companies-supreme-court.html
2•thelastgallon•25m ago•1 comments

Show HN: A utility microservice for human trust

https://futex.rodmena.co.uk/
1•rodmena•35m ago•0 comments

The 3dfx Voodoo Turns 30 – interview with cofounder Ross Smith

https://www.club386.com/3dfx-voodoo-history-ross-smith-interview/
1•nickt•35m ago•0 comments

Mozilla met with Microsoft to discuss their harmful design practices

https://www.reddit.com/r/firefox/comments/1wzzk6l/mozilla_met_with_microsoft_to_discuss_their/
8•botanical•41m ago•1 comments

A 100x faster* alternative to homebrew

https://github.com/zerobrewhq/zerobrew
2•cachebag•47m ago•0 comments

Was the Human Gut Healthier in Ancient Times?

https://www.nytimes.com/2026/10/07/science/microbiome-evolution-hadza-tsimane.html
1•gumby•52m ago•1 comments

Paper Mono Typeface

https://paper.design/mono
3•miguel-muniz•56m ago•4 comments

Application compatibility layers are there for the customer (2010)

https://devblogs.microsoft.com/oldnewthing/20100311-00/?p=14643/
1•crispinh•59m ago•0 comments

A Categorical Analysis of LLMs and the Symbol Grounding Problem (2025)

https://arxiv.org/abs/2512.09117
2•rockwindmemento•1h ago•0 comments

Can we prove LLMs are not conscious?

https://machines.tivra.com/human
1•DesaiAshu•1h ago•2 comments

Make717, Lancaster PA's First Makerspace

https://www.make717.org/
1•linuxkernal•1h ago•0 comments

Musk, Jensen Huang, Lisa Su Awarded National Medal of Science

https://www.foxnews.com/politics/first-fox-elon-musk-heads-back-white-house-trump-marks-prestigio...
3•osnium123•1h ago•1 comments

Practical use cases for OpenAI's Decisions API

https://vercel.com/i/openai-decisions-api-use-cases
1•flashbrew•1h ago•0 comments

Humanity's Last Problem

https://benhylak.substack.com/p/humanitys-last-problem
2•namanbhulawat•1h ago•1 comments

Show HN: A satirical yet useful employee survey app for tolerable workplaces

https://tolerableworkplace.com/
2•joewhale•1h ago•0 comments

Letterman – a roguelike Scrabble x balatro game

https://letterman.lol/
1•idiomltd•1h ago•0 comments

Dosbox-x OS-free version because of California age verification laws

https://github.com/joncampbell123/dosbox-x/issues/6337
1•bananaboy•1h ago•1 comments

Show HN: Rhyven – A marketplace for agents

https://rhyvenai.com
1•calebrhyven•1h ago•0 comments

The AI Pascal's Wager

https://ploum.net/2026-10-01-pascal_wager.html
2•teichmann•1h ago•0 comments

What Every Airline Can Learn About Proactively Shaping Revenue

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7152080
1•mooreds•1h ago•0 comments

April: APL as a DSL in Common Lisp

https://github.com/phantomics/april
2•so-cal-schemer•1h ago•1 comments