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?

Show HN: I built MyuiKits to ditch rebuilding the same components

https://www.myuikits.dev
1•Oliveship•29s ago•0 comments

The Game Industry of Poland: Report 2025 [pdf]

https://www.parp.gov.pl/storage/publications/pdf/EBOOK-GAM-WCAG_27112025.pdf
1•Vedor•3m ago•0 comments

Find the words that move you

https://maximusquotes.org/
1•chenmu•5m ago•0 comments

Six New Tips for Better Coding with Agents

https://steve-yegge.medium.com/six-new-tips-for-better-coding-with-agents-d4e9c86e42a9
1•mdemare•5m ago•0 comments

The Starmer Government Crisis

https://rodgercuddington.substack.com/p/the-starmer-government-crisis
1•freespirt•15m ago•1 comments

The biggest scammer on YouTube is YouTube [video]

https://www.youtube.com/watch?v=eiFxKRyPpD0
1•flyingkiwi44•15m ago•0 comments

An AI Brain with Only One Neuron Could Surpass Humans

https://thenextweb.com/news/how-ai-brain-with-only-one-neuron-could-surpass-humans
1•tesserato•16m ago•1 comments

Russia's Africa Corps fights in Mali, witnesses describe beheadings, rapes

https://apnews.com/article/mali-russia-africa-corps-mauritania-refugees-abuses-2935dd1b50397242a9...
1•Bondi_Blue•20m ago•0 comments

My Thoughts on Claude Opus 4.5

https://www.mckaywrigley.com/posts/opus-4.5
2•tosh•31m ago•0 comments

Compressed view of current events – video blog

https://www.thelastpaideia.com/view
1•thelastpaideia•34m ago•0 comments

Full Haskell-Like Type Class Resolution in Java

https://garciat.com/posts/java-type-classes/
2•birdculture•35m ago•0 comments

Hacking '' to track any WhatsApp or Signal User [video]

https://www.youtube.com/watch?v=HHEQVXNCrW8
1•sandebert•35m ago•0 comments

Sinterklaas Likes Playing on the Game Boy

https://brainbaking.com/post/2025/12/sinterklaas-likes-playing-on-the-game-boy/
1•jandeboevrie•41m ago•0 comments

Show HN: S3 compatible store with 1M IOPS(4K-R,p99~5ms), BYOC in 5min with rust

https://github.com/fractalbits-labs/fractalbits-main
6•fractalbits•42m ago•1 comments

Noperthedron is not Rupert (can't fit through itself) [video]

https://www.youtube.com/watch?v=eeVaUNPxXy8
1•fsckboy•43m ago•1 comments

Show HN: Ogblocks – Build Beautiful React Animations in Minutes

https://ogblocks.dev/
2•karanzkk•47m ago•0 comments

Open-source proxy that lets the Claude Code CLI run on Databricks Model Serving

2•vishalveera•52m ago•0 comments

My Working Thoughts

https://www.bramadams.dev/working-thoughts/
2•_bramses•53m ago•0 comments

Ask HN: Best tricks to make a PWA feel more native?

1•julienreszka•55m ago•2 comments

Hey Students, Considering Majoring in Sociology?

https://www.ihatesociology.com/stephen-turner
1•Tomte•59m ago•0 comments

Life, Work, Death and the Peasant

https://acoup.blog/2025/07/11/collections-life-work-death-and-the-peasant-part-i-households/
2•tmoravec•1h ago•1 comments

Super Mario Tune as a Fidget Toy

https://hackaday.com/2025/04/04/3d-print-and-play-the-super-mario-tune-as-a-fidget-toy/
1•ninju•1h ago•0 comments

FunKey is a Mac app that adds mechanical keyboard sounds to your MacBook

https://apps.apple.com/us/app/funkey-mechanical-keyboard-app/id6469420677?mt=12
1•mraduldeodhiya•1h ago•0 comments

The online index of mathematical databases

https://mathbases.org/
1•OgsyedIE•1h ago•0 comments

Think First, AI Second

https://every.to/p/think-first-ai-second
2•Garbage•1h ago•0 comments

Apple Bleeding Talent to OpenAI

https://www.macrumors.com/2025/12/05/apple-bleeding-talent-to-openai/
2•mgh2•1h ago•1 comments

Show HN: A Markdown document manager in Rust

https://www.seychl.app/
2•ranys•1h ago•0 comments

Browser history as a screening tool for sleep patterns

https://github.com/Circadiaware/webactogram
1•amadeuspagel•1h ago•0 comments

Winner Takes It All?

https://www.thatwastheweek.com/p/winner-takes-it-all-or-the-great
1•kteare•1h ago•0 comments

Why do we become mathematicians?

https://maa.org/math-values/why-do-we-become-mathematicians/
2•the-mitr•1h ago•1 comments