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: A production-ready music generation website built with Gemini Studio

https://music0.org
1•yiqi0914•2m ago•0 comments

The Inner-Platform Effect (2006)

https://thedailywtf.com/articles/The_Inner-Platform_Effect
1•birdculture•4m ago•0 comments

Writing Code Is Fun

https://davidcel.is/articles/writing-code-is-fun
1•frizlab•6m ago•0 comments

Free Software

https://www.fsf.org/
2•inventadero•7m ago•0 comments

The ancient monuments saluting the winter solstice

https://www.bbc.com/culture/article/20251219-the-ancient-monuments-saluting-the-winter-solstice
2•1659447091•7m ago•0 comments

Show HN: AI tool that walks citation graph and extracts data to create datasets

https://github.com/eamag/papers2dataset
1•eamag•8m ago•0 comments

Israel could be bringing back the death penalty – but only for Palestinians

https://www.cbc.ca/news/world/israel-gaza-palestinian-death-penalty-9.7019609
3•nrhrjrjrjtntbt•9m ago•1 comments

Developer convenience, infrastructure cost, and losing the open web

https://blog.senko.net/developer-convenience-infrastructure-cost-and-losing-the-open-web
2•taubek•15m ago•0 comments

Perl articles are being memory wiped from Wikipedia

https://old.reddit.com/r/perl/comments/1psj81k/perlmonks_is_being_memory_wiped_on_https_and/
5•leejo•18m ago•0 comments

Letchworth Garden Shed – Borrowing Catalogue

https://borrow.letchworthgardenshed.com/products
1•georgefrowny•18m ago•0 comments

Symon: 6502 System Simulator

https://github.com/sethm/symon
1•ingve•22m ago•0 comments

BMW Patents Proprietary Screws That Only Dealerships Can Remove

https://www.military.com/off-duty/autos/bmw-patents-proprietary-screws-only-dealerships-can-remov...
3•thunderbong•24m ago•1 comments

Hardware-accelerated BitLocker

https://techcommunity.microsoft.com/blog/windows-itpro-blog/announcing-hardware-accelerated-bitlo...
1•pregnenolone•29m ago•0 comments

Gilfoyle code review agent skill that roasts your code

https://github.com/github/awesome-copilot/blob/main/agents/gilfoyle.agent.md
1•tim__•30m ago•0 comments

DWBase Is an AI Designed and Coded (Not a) Database for Digital Workers

https://greentic-ai.medium.com/dwbase-is-an-ai-designed-coded-not-a-database-for-digital-workers-...
1•mectors•30m ago•0 comments

Show HN: FailCore – Deterministic Execution Runtime for AI Agents

https://github.com/Zi-Ling/failcore
1•IntelliAvatar•33m ago•0 comments

What architectural renders will look like

https://antirender.com/
2•FinnLobsien•35m ago•0 comments

Expert: EU Commission wants an "unlimited special legal zone" for AI

https://www.heise.de/en/news/Expert-EU-Commission-wants-an-unlimited-special-legal-zone-for-AI-11...
1•i-con•36m ago•0 comments

Critical RCE flaw impacts over 115,000 WatchGuard firewalls

https://www.bleepingcomputer.com/news/security/over-115-000-watchguard-firewalls-vulnerable-to-on...
1•fleahunter•37m ago•0 comments

Cartoon Network channel errors (1995 – 2025)

https://cnas.fandom.com/wiki/Channel_Errors
1•Pikamander2•37m ago•0 comments

2026: The Year of Autonomous Computing

https://www.jmilinovich.com/2026-the-year-of-autonomous-computing/
1•jmilinovich•37m ago•0 comments

I asked Vladimir Putin: "What future are you planning for Russia?" [video]

https://www.youtube.com/watch?v=y5kllN0U7nY
1•HelloUsername•38m ago•0 comments

List of Ciphertexts

https://en.wikipedia.org/wiki/List_of_ciphertexts
1•frozenseven•40m ago•0 comments

Why Geo Favors Deep, Innovative Content

https://www.edgeinsight.pro/post/the-semantic-shift-why-generative-engine-optimization-geo-favors...
1•flowinghorse•40m ago•0 comments

Isocity – Metropolis Builder (open-source/in browser)

https://iso-city.com/
1•RobinL•43m ago•0 comments

Building ADAR with Rust: Key compilation milestone achieved

https://www.sonair.com/journal/building-adar-with-rust-key-compilation-milestone
1•torotime•43m ago•0 comments

Why do indie developers always find it so hard to promote their products?

https://amplift.ai/
5•icetearun•43m ago•4 comments

Japan to restart biggest nuclear power plant, 15 years after Fukushima

https://www.cnn.com/2025/12/22/asia/japan-nuclear-reactor-restart-kashiwazaki-kariwa-intl-hnk
2•voxadam•46m ago•0 comments

Show HN: Yapi – FOSS Terminal API Client for Power Users

https://yapi.run/blog/what-is-yapi
2•jamiepond•49m ago•0 comments

CD Extended Graphics

https://extended.graphics/
1•hcs•50m ago•1 comments