frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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: Flybook – a private, offline flight logbook for Android

https://github.com/Luchowl/flybook
1•ripernverse•35s ago•0 comments

Objective – Tickets, file claims, and proof gates for coding agents

https://github.com/rakeshutekar/Objective
1•rakeshutekar•2m ago•0 comments

Show HN: Martin, A CLI that let's your Agent be your CRM, Built on Jaybase

https://github.com/kyle-visner/martin
1•kvisner•3m ago•0 comments

Show HN: DashClaw

https://www.dashclaw.io
1•ucsandman•4m ago•0 comments

Why China's A.I. Models Could Threaten the Communist Party

https://www.nytimes.com/2026/07/30/world/asia/as-chinas-ai-gets-stronger-it-poses-new-risks-to-be...
1•bookofjoe•5m ago•1 comments

Civilians under siege by Mexican cartel fight back with AK-47s, grenades

https://www.pbs.org/newshour/world/civilians-that-were-under-siege-by-a-mexican-cartel-fight-back...
2•starkparker•6m ago•0 comments

Do It 14,000 Times Slower with This One Trick

https://semi-rad.com/2026/08/do-it-14000-times-slower-with-this-one-trick/
1•frizlab•8m ago•0 comments

Hackers using calls, websites, meticulous tactics targeting US financial firms

https://www.reuters.com/world/hackers-targeted-us-private-equity-other-firms-including-blackstone...
2•Terretta•8m ago•0 comments

Unlimited text chats with GPT-5.6 Luna for everyone

https://twitter.com/openai/status/2085434712429052386
1•wertyk•8m ago•0 comments

Design of 1 TWe Fusion Power Plant

https://medium.com/@alanse/design-of-1-twe-fusion-power-plant-1ed9cea853d8
1•AlanSE•9m ago•0 comments

Astronomers capture highest-resolution image ever of the Sun's surface

https://physicsworld.com/a/astronomers-capture-highest-resolution-image-ever-of-the-suns-surface/
5•layer8•10m ago•0 comments

The Long Tail Gets Longer and Fatter

https://talkshi.com/blog/long-tail-gets-longer-and-fatter
1•greenfish6•12m ago•0 comments

Designing a query system for a Rust compiler

https://bal-e.org/speed/krabby/2026/query-system-design/
2•fanf2•12m ago•0 comments

Anthropic will design its own hardware to power Claude

https://arstechnica.com/ai/2026/08/anthropic-confirms-plans-to-build-an-in-house-silicon-team/
2•wertyk•15m ago•1 comments

Caveman Science Fiction

https://dresdencodak.com/2009/09/22/caveman-science-fiction/
1•erhuve•15m ago•0 comments

The original Quake gets a new DLC 30 years after its release

https://twitter.com/bethesda/status/2085427784210317743
1•aggrrrh•15m ago•1 comments

Some Moral and Technical Consequences of Automation (1960) [pdf]

https://www.cs.umd.edu/users/gasarch/BLOGPAPERS/moral.pdf
1•RGS1811•15m ago•0 comments

Google Gemini seems to expose private Google Docs data

https://www.reddit.com/r/IndieDev/comments/1vfwuf5/a_player_found_out_the_actual_name_of_my_games/
1•mostlysimilar•16m ago•1 comments

AI used to design new viruses

https://www.eurekalert.org/news-releases/1138470
2•DeepLogin•16m ago•0 comments

Should AI labs be treated like the owners of dangerous animals?

https://www.economist.com/science-and-technology/2026/08/06/should-ai-labs-be-treated-like-the-ow...
1•pseudolus•16m ago•1 comments

The End of Google Search—and the Internet—as We Know It

https://www.theringer.com/2026/08/04/tech/google-search-ai-internet
1•CharlesW•17m ago•0 comments

GitHub exposes pub keys at GitHub .com/${username}.keys

https://twitter.com/samhogan/status/2085380716163109265
3•gmays•20m ago•0 comments

ASK HN: Opus 5.0 is more autonomous

1•nunep•20m ago•2 comments

Agent Skills

https://github.com/addyosmani/agent-skills
1•tosh•20m ago•0 comments

Gemma Translator: DIY hardware for offline translation

https://github.com/google-gemma/gemma-translator
1•dmotz•21m ago•0 comments

Win Grep – A visual 3-pane log and text filtering tool for Windows

https://www.sharktime.com/en_WinGrep.html
1•piotrchlebek•22m ago•0 comments

AI Creates Bacteria-Killing Viruses: 'Extreme Caution' Warns Genome Pioneer

https://www.newsweek.com/ai-creates-bacteria-killing-viruses-extreme-caution-warns-genome-pioneer...
2•_____k•22m ago•0 comments

Anomaly

https://anomaly.cnetai.cyou
1•anoqwen•25m ago•0 comments

Show HN:Calibra: Train with Less Data

https://calibra-wulw.vercel.app/
1•omertt27•25m ago•0 comments

The Complexity We Choose

https://frazik.com/blog/2026/the-complexity-we-choose/
1•frazik•26m ago•0 comments