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

Perplexity says its AI agent cut Rho's weekly meeting time by 90%

https://twitter.com/perplexity_ai/status/2056749555346235704
1•Otek•1m ago•0 comments

Google Antigravity Built an OS from a single prompt

https://antigravity.google/blog/google-antigravity-built-an-os
1•py4•1m ago•0 comments

Gmail is going to start talking to you

https://www.theverge.com/tech/932973/google-gmail-live-ai-keep-docs-io-2026
1•cdrnsf•2m ago•0 comments

The Telescope That Got Shot (2023)

https://www.amusingplanet.com/2023/04/the-telescope-that-got-shot.html
1•NKosmatos•3m ago•0 comments

Karpathy Joins Anthropic

https://techcrunch.com/2026/05/19/openai-co-founder-andrej-karpathy-joins-anthropics-pre-training...
1•hdjY28•3m ago•0 comments

We Solved the iOS Submission Process

https://tminus.one/
1•DevinEsposito•4m ago•1 comments

A modular collection of remote proof of storage proofs

https://pinionengineering.github.io/storage-proofs/
1•coryschwartz•5m ago•1 comments

Show HN: Native-feeling charts for Obsidian Bases, built with Deno

https://github.com/zobweyt/obsidian-bases-chart-layouts
1•zobweyt•6m ago•0 comments

Thermo Fisher caught photoshopping Western Blot

https://twitter.com/addictedtoigno1/status/2056072770987970825
1•randycupertino•6m ago•1 comments

Show HN: Limitless – AI OSINT search and interactive intelligence sandboxes

https://limitless-osint.com/
1•VanceVP•6m ago•0 comments

God of the Gaps and the Future of Programming

https://gisbi.me/blog/article-1779175137638
1•Gisbitus•6m ago•0 comments

The Enhanced Games: The line we keep moving

https://thevarsity.ca/2026/03/15/the-enhanced-games-the-line-we-keep-moving/
1•tejohnso•7m ago•0 comments

Parsing Perl Without Perl: a Rust LSP for Perl [video]

https://www.youtube.com/watch?v=SbBnc8FjUXM
1•oalders•11m ago•0 comments

The mistake of conflating intelligence and power

https://www.dwarkesh.com/p/the-mistake-of-conflating-intelligence
1•gmays•14m ago•0 comments

How-to-Train-Your-GPT

https://github.com/raiyanyahya/how-to-train-your-gpt
1•mateenah•14m ago•0 comments

Invisible_playwright: Stealth Firefox that passes every bot detection test

https://github.com/feder-cr/invisible_playwright
1•thunderbong•15m ago•0 comments

Web Researcher MCP: Give AI assistants web search and research capabilities (Go)

https://github.com/zoharbabin/web-researcher-mcp
1•zoharbabin•15m ago•0 comments

Show HN: Crowdsourced tracker for what each Windows/M365 update breaks

https://win-update-tracker.vercel.app/
1•dantelofisial•16m ago•0 comments

C++ Creator vs. Vibe Coding: "Seniors Don't Want This Mess" [video]

https://www.youtube.com/shorts/WQABdV2p2fA
2•javatuts•16m ago•0 comments

JDK 26: G1 GC Throughput Improvements by 5-15%

https://ionutbalosin.com/2026/05/g1-gc-throughput-improvements-5-15-performance-gains-with-dual-c...
2•andreabergia•23m ago•0 comments

Android Halo helps you stay in sync with your AI agent

https://blog.google/products-and-platforms/platforms/android/android-halo/
1•xnx•23m ago•0 comments

Meta Employees Are Scrambling to Use Up Benefits Ahead of Layoffs

https://www.wired.com/story/meta-employees-scramble-benefits-layoffs-ai/
4•ua709•24m ago•1 comments

PHP's Oddities

https://flowtwo.io/post/php%27s-oddities
1•thejoeflow•25m ago•0 comments

HRM-Text

https://sapient.inc/hrm-text/
1•artninja1988•25m ago•0 comments

Democrats preview how they'd go after the Ticketmaster settlement

https://www.theverge.com/policy/934112/live-nation-ticketmaster-democrats-doj-settlement
1•cdrnsf•27m ago•0 comments

How Google Is Starting to Win the A.I. Race

https://www.nytimes.com/2026/05/19/technology/personaltech/google-gemini-ai.html
4•xnx•27m ago•1 comments

Starship's Twelfth Flight Test Set for Thursday

https://www.spacex.com/launches/starship-flight-12
2•bookmtn•29m ago•0 comments

WHO declares global health emergency over Congo Ebola outbreak

https://boingboing.net/2026/05/18/who-declares-global-health-emergency-over-congo-ebola-outbreak....
2•DropDead•30m ago•0 comments

How ChatFeatured Migrated from PlanetScale to Postgres Managed by ClickHouse

https://clickhouse.com/blog/chatfeatured
1•4mog•30m ago•0 comments

Awayke: One-click menubar toggle to prevent lid-close sleep (Swift, open source)

https://github.com/daemonphantom/Awayke
1•daemonphantom•31m ago•1 comments