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

Launching the Julia Security Working Group

https://julialang.org/blog/2025/11/launching-security-wg/
1•darboux•2m ago•0 comments

1964 Recompiling Engine Documentation (2001) [pdf]

https://emudev.org/docs/1964-recompiling-engine-documentation.pdf
1•davikr•3m ago•0 comments

Deno's sandbox is insufficient (2023)

https://mbullington.net/weblog/please-let-me-sandbox-npm/
1•mbullington•4m ago•0 comments

Hey HN I'm Michael, co-founder of AI Guardian

1•buttersmoothAI•6m ago•0 comments

Why Rive scripting runs on Luau

https://rive.app/blog/why-scripting-runs-on-luau
1•ivm•8m ago•0 comments

Why our opinions about the Beatles keep changing

https://www.theguardian.com/music/2025/nov/25/the-beatles-anthology-stuart-maconie-historiography
3•jethronethro•12m ago•0 comments

Show HN: JustBloggedging platform that takes 2 minutes to setup

https://justblogged.com
3•usamaejaz•13m ago•0 comments

Google Answers is no longer accepting questions (2006)

http://answers.google.com/answers/index.html
1•xk3•15m ago•0 comments

LLM SVG Generation Benchmark

https://gally.net/temp/20251107pelican-alternatives/index.html
1•surprisetalk•16m ago•0 comments

Suno AI Partners with Warner Music Group (WMG)

https://suno.com/blog/wmg-partnership
2•thorum•17m ago•1 comments

The Context Problem in Artificial Intelligence (2022)

https://cacm.acm.org/opinion/the-context-problem-in-artificial-intelligence/
3•measurablefunc•18m ago•0 comments

The Costs of Using AI to Manage Emotional Uncertainty

https://rashidazarang.com/c/costs-of-emotional-outsourcing-with-ai
4•rashidae•19m ago•1 comments

How to Host a Blog on a Subdirectory Instead of a Subdomain

https://www.davidma.co/blog/2025-11-14-host-your-blog-on-a-subdirectory/
4•taikon•22m ago•0 comments

Young Men and Women Use AI Differently

https://youngmenresearchinitiative.substack.com/p/young-men-and-women-use-ai-differently
2•m-hodges•22m ago•0 comments

Jury trials set to be axed for most crimes under major shake up

https://www.legalcheek.com/2025/11/jury-trials-set-to-be-axed-for-most-crimes-under-major-shake-up/
1•jjgreen•23m ago•0 comments

Leaderboard for AI Predictors

https://futurex-ai.github.io/
1•SCEtoAux•24m ago•0 comments

Notepad++ Flagged in National Vulnerability Database

https://nvd.nist.gov/vuln/detail/CVE-2025-56383
1•carodgers•24m ago•1 comments

ICE Offers Up to $280M to Immigrant-Tracking 'Bounty Hunter' Firms

https://www.wired.com/story/ice-bounty-hunter-spy-program/
18•zzzeek•25m ago•2 comments

How to repurpose your old phone's GPS modem into a web server

https://blog.nns.ee/2021/04/01/modem-blog
3•xx_ns•29m ago•1 comments

Commodore CHESSmate

https://benlo.com/microchess/chessmate.html
2•naves•30m ago•0 comments

Ubihealthd (2015)

https://lwn.net/Articles/663751/
1•reflexe•30m ago•0 comments

Show HN: An AI interface to understand anything, better than NotebookLM

https://www.kerns.ai/
1•kanodiaayush•30m ago•0 comments

Free Ircam Technologies

https://forum.ircam.fr/collections/detail/technologies-ircam-free/
2•ofrzeta•31m ago•0 comments

Indian detained in Shanghai airport is detained and told "You're Chinese"

https://timesofindia.indiatimes.com/india/youre-chinese-arunachal-woman-harassed-by-shanghai-airp...
2•ilamont•33m ago•0 comments

A New Bridge Links the Math of Infinity to Computer Science

https://www.quantamagazine.org/a-new-bridge-links-the-strange-math-of-infinity-to-computer-scienc...
3•digital55•34m ago•0 comments

GTM Engineering Has a Context Problem

https://www.octavehq.com/post/gtm-engineering-has-a-context-problem
5•cmogni1•36m ago•1 comments

Talagrand's convolution conjecture up to log log via perturbed reverse heat

https://arxiv.org/abs/2511.19374
1•tzury•37m ago•0 comments

Generate changelog using Git Commits and AI with single Python script

https://github.com/BrowseWiki/genlog
1•laotoutou•38m ago•0 comments

How to Improve Your Attention Span: Daniel Pink's Strategies for the Digital Age

https://www.openculture.com/2025/11/how-to-improve-your-attention-span.html
3•frenzcan•41m ago•0 comments

UK intends to scrap jury trials for majority of court cases

https://www.gbnews.com/politics/uk/david-lammy-scrap-jury-trials
16•cbeach•42m ago•13 comments