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

Skåpa, a parametric 3D printing app like an IKEA manual

https://nmattia.com/posts/2025-03-24-skapa-intro/
1•iamjackg•51s ago•0 comments

"Wildly irresponsible": DOT's use of AI to draft safety rules sparks concerns

https://arstechnica.com/tech-policy/2026/01/wildly-irresponsible-dots-use-of-ai-to-draft-safety-r...
1•Jtsummers•1m ago•0 comments

Affirm and Fiserv Team to Bring BNPL to Debit Programs

https://www.pymnts.com/bnpl/2026/affirm-and-fiserv-team-to-bring-bnpl-to-debit-programs/
1•petethomas•1m ago•0 comments

PostSecret

https://postsecret.com/
1•ustad•3m ago•0 comments

OpenAI's president is a Trump mega-donor

https://www.theverge.com/ai-artificial-intelligence/867947/openai-president-greg-brockman-trump-s...
3•cdrnsf•3m ago•0 comments

PearPass – Your Open-Source Password Manager

https://pass.pears.com/download/
1•janandonly•3m ago•0 comments

Y Combinator is no longer investing in Canadian startups

https://thelogic.co/news/exclusive/y-combinator-canada-startups/
3•jtemperton•4m ago•1 comments

Revitalizing Alfred Adler: An Echo for Equality (2021)

https://pmc.ncbi.nlm.nih.gov/articles/PMC7932831/
1•wslh•6m ago•0 comments

Cloud-Hardware Co-Design for Memory Bandwidth-Bound HPC Workloads: Azure HBv5

https://dl.acm.org/doi/10.1145/3773656.3773684
1•matt_d•6m ago•0 comments

The Pilot and the Machine

https://blog.wesleyabbey.io/p/the-pilot-and-the-machine
1•wesabi•6m ago•0 comments

The impact of far-UVC radiation on pathogens, cells, skin, and eyes

https://pmc.ncbi.nlm.nih.gov/articles/PMC7894148/
1•luu•7m ago•0 comments

New Data Show Reduced Overall PFAS Exposures in Subarctic Ocean

https://seas.harvard.edu/news/new-data-show-reduced-overall-pfas-exposures-subarctic-ocean
1•geox•9m ago•0 comments

How well can you predict the state of the world in 2041?

https://xavdid.fillout.com/predictions
1•xavdid•9m ago•1 comments

The Most Important Teams in Tech

https://blog.staysaasy.com/p/the-most-important-teams-in-tech
1•mooreds•9m ago•0 comments

Show HN: ReelStudio – open-source Instagram Reel transcription with Whisper

https://github.com/stym06/reelstudio
1•stym06•10m ago•0 comments

Remembering Cliff Sekel (InsaneDarwin)

https://www.puredarwin.org/wiki/#/news/Remembering-Cliff-Sekel
1•Bondi_Blue•10m ago•0 comments

Allowlist for .gitignore

https://blog.izissise.net/posts/gitignoreallowlist/
1•weinzierl•11m ago•0 comments

From Sweeteners to Sleeplessness: Sucralose, Saccharin and the Gut-Brain Axis

https://www.mdpi.com/2673-9992/43/1/1
2•PaulHoule•15m ago•0 comments

Tether says it bought 27 tons of gold in fourth quarter

https://finance.yahoo.com/news/tether-says-bought-27-tons-174955806.html
2•petethomas•16m ago•0 comments

Microsoft Launches Maia 200 AI Chip for Faster Model Inference

https://finance.yahoo.com/news/microsoft-launches-maia-200-ai-192556018.html
1•minkeymaniac•16m ago•0 comments

460k Stars on a GitHub Repo

https://github.com/codecrafters-io/build-your-own-x
3•vedantnene•16m ago•1 comments

Creating an archive of phone tree changes, like the Wayback Machine for IVR

https://phonesupported.dev/blog/building-a-time-machine-for-phone-trees/
1•fast_kalyan•17m ago•0 comments

Shared Garden

https://sharedgarden.io/
2•lucaspauker•17m ago•0 comments

Computability of Differential Equations

https://link.springer.com/chapter/10.1007/978-3-030-59234-9_3
2•ogogmad•17m ago•0 comments

Show HN: New feature: "Voices" – fictional commentary alongside current news

https://newzino.com/story/russia-ukraine-energy-infrastructure
1•bidwellm•19m ago•1 comments

How Over-Engineering Became the New Technical Debt in Distributed Systems

https://cacm.acm.org/blogcacm/how-over-engineering-became-the-new-technical-debt-in-distributed-s...
3•zdw•20m ago•0 comments

Dead Code

https://underlap.org/dead-code/
2•speckx•20m ago•0 comments

Why I'm launching a feminist video games website in 2026

https://www.theguardian.com/games/2026/jan/26/why-im-launching-a-feminist-video-games-website-in-...
3•cf100clunk•23m ago•1 comments

An HTML Standard for AI Use Disclosure

https://github.com/dweekly/ai-content-disclosure
1•dweekly•24m ago•0 comments

Purpose-Built AI for Nuclear

https://nuclearn.ai/
1•minton•25m ago•0 comments