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•7mo 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•7mo 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?

The Untold Story of the Nintendo Entertainment System [video]

https://www.youtube.com/watch?v=uJvpRGibFhg
1•zdw•1m ago•0 comments

Show HN: Jotter – A Note Keeping App

https://jotter.marstol.com/
1•sethhovestol•4m ago•0 comments

Zodiac Z13 Decryption on Colab – experts claim validation of Baber's decipher

https://colab.research.google.com/drive/19p4n1aMyeYte1jC4P3GKflMgD6xuZAvV
1•Artix187•6m ago•0 comments

China's TFR dev team has disbanded, following the arrest of its head dev by MSS

https://www.reddit.com/r/hoi4modding/s/5MTCy4s7HO
1•DustinEchoes•7m ago•0 comments

Amazon non-consensually forced TikTok onto my family's device

https://mastodon.neilzone.co.uk/@neil/115787607800144474
2•ColinWright•7m ago•0 comments

Attention Is Not What You Need: Grassmann Flows as an Attention-Free Alternative

https://arxiv.org/abs/2512.19428
1•lexandstuff•9m ago•0 comments

Tiny chip could change the future of quantum computing

https://www.sciencedaily.com/releases/2025/12/251226045341.htm
1•tsenturk•12m ago•0 comments

Capsules transforms writing into cinematic, interactive experiences

https://capsules.ink/
1•fcpguru•12m ago•1 comments

Association of healthy sleep patterns with risk of mortality and life expectancy

https://pubmed.ncbi.nlm.nih.gov/37831896/
1•RickJWagner•13m ago•0 comments

Apparatus for facilitating the birth of a child by centrifugal force

https://patents.google.com/patent/US3216423A/en
2•boguscoder•14m ago•1 comments

I Think about Kubernetes

https://garnaudov.com/writings/how-i-think-about-kubernetes/
3•todsacerdoti•16m ago•0 comments

use Claude Code via Nvim and ACP

https://github.com/jonmorehouse/avante.nvim/pull/1
1•MorehouseJ09•20m ago•1 comments

Police Say He Killed in Self-Defense. His Phone Tells Another Story

https://www.wsj.com/us-news/spivey-killing-stand-your-ground-f45a3492
2•JumpCrisscross•27m ago•1 comments

Teaching Tech Together (2019)

https://teachtogether.tech/en/index.html
1•Tomte•27m ago•0 comments

The Impossibility of Virus Detection [pdf]

https://www.cs.virginia.edu/~evans/pubs/virus.pdf
2•friedrich12•28m ago•0 comments

Administration Is the Root Bug of Civilization

https://blog.hermesloom.org/p/administration-is-the-root-bug-of
2•sigalor•29m ago•0 comments

Kubernetes 1.35: In-Place Pod Resize Graduates to Stable – Kubernetes

https://kubernetes.io/blog/2025/12/19/kubernetes-v1-35-in-place-pod-resize-ga/?trk=comments_comme...
2•abdelhousni•31m ago•0 comments

Toys with the highest play-time and lowest clean-up-time

https://joannabregan.substack.com/p/toys-with-the-highest-play-time-and
2•surprisetalk•31m ago•0 comments

T-Ruby is Ruby with syntax for types

https://type-ruby.github.io/
1•thunderbong•32m ago•0 comments

Friday Deploys: Sometimes That Puppy Needs Murdering

https://charitydotwtf.substack.com/p/on-friday-deploys-sometimes-that
1•BerislavLopac•33m ago•0 comments

SaaS Is the New Mall

https://sagivo.com/blog/saas-is-the-new-mall
2•sagivo•33m ago•0 comments

Show HN: The easiest way to set up Kubernetes clusters on Hetzner Cloud

https://hetzner-k3s.com/
1•SkyLinx•33m ago•0 comments

Joining Jane Street

https://www.moderndescartes.com/essays/2025_job_search/
4•nicholasjbs•35m ago•1 comments

"Agent" may have a widely enough agreed upon definition to be useful jargon now

https://simonwillison.net/2025/Sep/18/agents/
1•baxtr•35m ago•0 comments

New York to require social media platforms to display mental health warnings

https://www.reuters.com/legal/litigation/new-york-require-social-media-platforms-display-mental-h...
4•dredmorbius•35m ago•1 comments

The Retraction Watch Hijacked Journal Checker now has 400 entries

https://retractionwatch.com/2025/12/26/retraction-watch-hijacked-journal-checker-now-has-400-entr...
1•leephillips•36m ago•0 comments

Show HN: Storytel-player – unofficial desktop client for Storytel

1•debba•38m ago•0 comments

FreeRadical – Rust CMS that's 1500% faster than WordPress

https://freeradical.dev/
2•prabhatkr•41m ago•0 comments

NYC phone ban reveals some students can't read clocks

https://gothamist.com/news/nyc-phone-ban-reveals-some-students-cant-read-clocks
18•geox•42m ago•12 comments

Nike's Crisis and the Economics of Brand Decay

https://philippdubach.com/2025/12/02/nikes-crisis-and-the-economics-of-brand-decay/
3•7777777phil•46m ago•0 comments