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?

Slixmpp 1.16.0 – XMPP/Jabber Library for Python – SleekXMPP

https://blog.mathieui.net/en/slixmpp-1-16.html
1•neustradamus•1m ago•0 comments

AgentsView

https://www.agentsview.io/
1•flippant•1m ago•0 comments

A Small Japanese Island Built a Community That Keeps Bringing Visitors Back

https://www.youtube.com/undefined
1•Akiko_Tsuka•1m ago•0 comments

Searching for startup ideas on the Google Workspace Marketplace, pt 2 (2025)

https://developerwithacat.com/blog/052025/google-workspace-marketplace-startups-part2/
1•mmarian•1m ago•0 comments

I Am Open Sourcing Hissab Calculator App, Skills, CLI and NPM

https://github.com/rawbytess/hissab
2•prenx4x•1m ago•0 comments

Show HN: A Bluesky client for PICO-8

https://picosky.vinnymac.dev/
2•vinnymac•4m ago•0 comments

Show HN: Time Progress Bar in macOS menu bar

https://timegauge.minilabs.cc/
1•introvertmac•5m ago•0 comments

Making extensions work on file: URLs in Firefox 153

https://utcc.utoronto.ca/~cks/space/blog/web/Firefox153AddonsOnFileUrls
1•speckx•7m ago•0 comments

Building an HTML-first site doubled our users overnight

https://mohkohn.co.uk/writing/html-first/
2•edent•8m ago•0 comments

Show HN: A Chrome extension that redirects only the YouTube homepage

https://github.com/rogulia/block-youtube-home-chrome-extension
1•rogulia•8m ago•1 comments

Show HN: A personality test with no questions – an AI watches your picks instead

https://app.olima.ai
1•alassanediop•8m ago•0 comments

Show HN: SNItch – fuzz the TLS SNI field to discover hidden virtual hosts

https://github.com/cirosec/SNItch
1•flixf•10m ago•0 comments

How R you using agents?

1•lillyjust•12m ago•1 comments

The Productive Sovereign: An AI Framework for Living Outside the System

https://greggbarbers.substack.com/p/the-productive-sovereign-an-ai-framework
1•taivare•12m ago•1 comments

Show HN: Tempis, a canvas-based timeline component for large datasets

https://tempis.dev/
1•nikkorn•14m ago•0 comments

Why Audiobooks Are Now a Major Piracy Target

https://www.plagiarismtoday.com/2026/06/09/why-audiobooks-are-now-a-major-piracy-target/
1•speckx•14m ago•0 comments

Claude Fable 5 System prompt

https://xcancel.com/elder_plinius/status/2064478648057610422#m
1•FergusArgyll•15m ago•0 comments

Biotech's AI Revolution Will Be Won in the Lab

https://www.tamiola.com/blog/biotechs-ai-revolution-will-be-won-in-the-lab
1•ktamiola•15m ago•0 comments

Show HN: LoopGain – Cut agent API spend by measuring when loops stop improving

https://github.com/loopgain-ai/loopgain
1•fitz2882•16m ago•1 comments

Support systems interpret and reinforce autistic masking: Visibility logic

https://www.tandfonline.com/doi/full/10.1080/09687599.2026.2659101
1•aleken•17m ago•0 comments

Show HN: RiskKernel, kill -9 an AI agent and resume it without paying twice

https://riskkernel.com/
2•prashar32•17m ago•0 comments

Valve removes Steam Gift Cards from stores due to scammers

https://help.steampowered.com/en/faqs/view/78E3-7431-1E88-AD59
2•HelloUsername•17m ago•0 comments

Acquiring a startup: what to do AFTER the deal closes: Dan Moore from FusionAuth

https://scalingdevtools.com/podcast/episodes/dan-moore-20b5f6a6-a30f-4ee8-82a4-64eacb40027f
1•mooreds•18m ago•0 comments

AI as "Co-Founder": GenAI for Entrepreneurship

https://arxiv.org/abs/2512.06506
1•reqo•19m ago•0 comments

Show HN: Hades – Unity context graph for Claude Code

https://github.com/TheArcForge/Hades
1•mikekuharuk•20m ago•0 comments

LLMs and Almost Good Code

https://entropicthoughts.com/llms-and-almost-good-code
1•gsky•22m ago•0 comments

TikFilmer – Create your AI movie from a single idea

https://tikfilmer.com/
1•aaron7yu•24m ago•0 comments

Google Gemini Is Down

https://www.techradar.com/news/live/gemini-down-june-2026
4•axsaucedo•25m ago•2 comments

State of AI coding spend: benchmarks from 800 developers and $2.3M of usage

https://www.viberank.app/blog/state-of-ai-coding-2026
1•nikshepsvn•26m ago•0 comments

PostgreSQL: Property Graphs

https://www.postgresql.org/docs/19/ddl-property-graphs.html
1•mpweiher•26m ago•0 comments