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?

Making Friends with Foreigners

https://shxlpa.substack.com/p/making-friends-with-foreigners
2•itarmonkey•2m ago•0 comments

Developing a New Electric Vehicle Sound

https://acoustics.org/developing-a-new-electric-vehicle-sound/
1•geox•3m ago•0 comments

The framework isn't for you. You're just along for the voyage

https://doingsoftwarewrong.com/blog/javascript-frameworks/
1•ChunkyAu•7m ago•0 comments

"Netflix killed casting from phones"

https://www.androidauthority.com/netflix-casting-chromecast-google-tv-streamer-3620784/
1•valgaze•8m ago•0 comments

I ran out of money, spent my savings on a Hong Kong prostitute,& became a commie

https://docs.google.com/document/d/1Am8bYA1aoXuSGFg7w7NjlHXFZiSAEt_oAVITPYdNRGo/edit?tab=t.0
1•jxmorris12•8m ago•0 comments

Viewable with Any Browser: Campaign

https://www.anybrowser.org/campaign/
1•4dm1r4lg3n3r4l•9m ago•0 comments

Finally; a genuinely good GUI for NetworkManager on Wayland

https://github.com/cachebag/nmrs
1•cachebag•10m ago•1 comments

Dynamic Custom Fields in Laravel Without Migrations: A Deep Dive

https://github.com/Relaticle/relaticle
1•birdculture•10m ago•0 comments

8086 Microcode Browser

https://nand2mario.github.io/posts/2025/8086_microcode_browser/
1•zdw•11m ago•0 comments

Show HN: Airena – Client-side arena for comparing AI models across 68 providers

https://github.com/andronov04/airena
1•andronov04•12m ago•0 comments

Meta's Child Sex-Trafficking Problem

https://www.afterbabel.com/p/metas-child-sex-trafficking-problem
1•zdw•12m ago•0 comments

Freedom Mobile discloses data breach exposing customer data

https://www.bleepingcomputer.com/news/security/freedom-mobile-discloses-data-breach-exposing-cust...
1•gnabgib•12m ago•0 comments

US parents say Peppa Pig is giving their kids British accents (2021)

https://www.theguardian.com/tv-and-radio/2021/jul/19/peppa-pig-american-kids-british-accents
1•surprisetalk•12m ago•0 comments

Passing the Torch: James Gross on the Next Chapter of Micromobility Industries

https://micromobility.io/news/how-charging-is-reshaping-the-business-of-shared-scooters-and-e-bikes
1•prabinjoel•13m ago•0 comments

Inside ThunderKittens' Python Bindings

https://www.enbao.me/posts/tk
1•nathan-barry•15m ago•0 comments

HBO Max's Mad Men Vomit Scene Proves 'Remastered' Doesn't Mean 'Better'

https://www.wired.com/story/hbo-maxs-mad-men-barf-scene-proves-remastered-doesnt-mean-better/
1•JumpCrisscross•15m ago•1 comments

The problematic path of least resistance for coding agents

https://anyblockers.com/posts/the-path-of-least-resistance-for-coding-agents
1•gmays•17m ago•0 comments

Boundaries, Modularity and a Diaper Effect

https://talesfrom.dev/blog/boundaries-modularity-and-a-diaper-effect
1•gpi•18m ago•0 comments

Ask HN: Is Cloudflare Down for You?

5•Palmik•19m ago•5 comments

Alpine Linux 3.23 Released with APK Tools v3 for Package Management

https://www.phoronix.com/news/Alpine-Linux-3.23
1•mikece•19m ago•1 comments

My Database Was Correct. It Was Also 296x Too Slow

https://www.chandlernguyen.com/blog/2025/12/02/my-database-was-correct-it-was-also-296x-too-slow/
1•chandlernguyen•22m ago•0 comments

Omnicom CEO breaks down plan to beat rivals in AI after $9B IPG deal

https://www.businessinsider.com/omnicom-ceo-john-wren-ipg-merger-ai-job-cuts-2025-12
1•kafkaesque•25m ago•0 comments

Seeking Advice on Network Quality Metrics for Crowdsourced Mapping Project

https://github.com/banana42311/Technological-topography/discussions/2
1•banana423•26m ago•1 comments

The ups and downs of space research

https://engineering.tamu.edu/news/2025/11/the-ups-and-downs-of-space-research.html
1•PaulHoule•27m ago•0 comments

React tool to smoothen front end vibe coding

https://www.npmjs.com/package/mindone
1•dfeles•28m ago•1 comments

What I Learned from Vibe-Coding Auth with AI

https://fusionauth.io/blog/vibe-coding-authentication
3•mooreds•28m ago•0 comments

Show HN: The week my products felt real

https://newsletter.masilotti.com/p/the-week-my-products-finally-felt
1•joemasilotti•29m ago•0 comments

Chips for the Rest of Us

https://engineering.nyu.edu/about/unconventional-engineer/chips-for-us
3•hasheddan•31m ago•0 comments

Alpine Linux 3.23.0 Released: APK-tools v3, Linux-stable replaces Linux-edge

https://alpinelinux.org/posts/Alpine-3.23.0-released.html
4•fossdd•33m ago•0 comments

Share your favorite book/article/podcast recs

https://www.rhomeapp.com/
3•rohannih•34m ago•1 comments