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?

Saudi Arabia wants a car industry, launches Ceer with two EVs

https://arstechnica.com/cars/2026/09/saudi-arabia-wants-a-car-industry-launches-ceer-with-two-evs/
1•rbanffy•1m ago•0 comments

Six ways to integrate Jev into your application

https://vercel.com/i/jev-integrations
1•flashbrew•3m ago•0 comments

TypeSafe AI Jev vs. GPT-6 Astra

https://vercel.com/i/jev-vs-gpt-6-astra
1•flashbrew•3m ago•0 comments

Mudita Kompakt

https://www.mudita.com/products/phones/mudita-kompakt/
1•FinnLobsien•4m ago•0 comments

Two JITs, Opposite Signs

https://intertwingly.net/blog/2026/09/19/Two-JITs-Opposite-Signs.html#reading-the-columns
1•ksec•4m ago•0 comments

Is Claude 20x actually 20x?

2•ko3us•7m ago•0 comments

Show HN: DiagramHub – A central hub for draw.io diagrams with SSO

https://diagramhub.app
1•mwiede•9m ago•0 comments

Detecting and Tracking Flying Objects

https://intellycode.dev/case-studies/drone-detection
1•zeniosd•9m ago•0 comments

Nvidia boss says there is '0% chance' AI destroys the world by 2030

https://www.theguardian.com/technology/2026/sep/21/nvidia-boss-jensen-huang-dismisses-warnings-ai...
3•edward•20m ago•0 comments

Verda (Finland) raises $189M in Series B

https://verda.com/blog/what-189m-in-funding-unlocks-for-verda-customers
1•cmrdporcupine•20m ago•0 comments

Pygmalion's Passion

https://paulkingsnorth.substack.com/p/pygmalions-passion
1•holdit•21m ago•0 comments

What Shopify Theme Automation Can Safely Handle and What Still Needs Engineers

https://shugert.com.mx/blog/shopify-theme-automation-safety-boundary
1•shugert•25m ago•0 comments

Prose as Code: Applying Formal Verification to Product Specs

https://alexanderabramovich.medium.com/prose-as-code-applying-formal-verification-to-product-spec...
2•happyalexander•25m ago•0 comments

An AI bot appeared on the StarCraft ladder. Can you tell who's playing?

https://marianogappa.github.io/software/2026/09/22/player-fingerprinting-in-the-age-of-ai-bots/
1•maloga•26m ago•0 comments

Ask HN: What's with the forced lower-casing texts?

1•meysamazad•30m ago•1 comments

Deploying IPv6-First EKS on AWS: What Still Doesn't Work, and What It Saves

https://labs.ripe.net/author/spidee/deploying-ipv6-first-eks-on-aws-what-still-doesnt-work-and-wh...
2•spidee-spiro•31m ago•0 comments

Orcrist: A desktop coding agent whose harness is written fresh for every task

https://github.com/simone20a/Orcrist
1•simone20a•32m ago•0 comments

Same prompt, same endpoint, different score

https://codecut.ai/prompt-tweak-score-gain/
1•khuyentran1401•33m ago•0 comments

Deriving the Landauer Principle from the Quantum Shannon Entropy

https://pubs.acs.org/jpclcd/article-abstract/16/5/1397/3742503/Deriving-the-Landauer-Principle-Fr...
1•binyu•33m ago•0 comments

Commodore's forgotten Amiga Unix gets a modern revival

https://www.theregister.com/software/2026/09/22/commodores-forgotten-amiga-unix-gets-a-modern-rev...
1•jjgreen•34m ago•0 comments

FAA debuts its AI-powered tool for managing flight traffic

https://www.politico.com/news/2026/09/21/faa-ai-tool-flight-traffic-01086258
1•Betelbuddy•34m ago•0 comments

Nginx (1.31.5) – Ngx_HTTP_JSON_module

https://nginx.org/en/docs/http/ngx_http_json_module.html
1•j03b•35m ago•0 comments

Study: Young users (9 to 18Y) ditch Google for AI, with unknown consequences

https://norwegianscitechnews.com/2026/09/young-users-ditch-google-for-ai-with-unknown-consequences/
18•giuliomagnifico•38m ago•15 comments

Ask HN: What do you expect from the next 5 years of AI?

3•msuniverse2026•39m ago•4 comments

ONELite – Digital Guard

https://play.google.com/store/apps/datasafety?id=com.oxigen.onelite
1•theonespyinfo•40m ago•1 comments

Show HN:Clipwise – a Notion web clipper with no account and no server

https://chromewebstore.google.com/detail/clipwise-—-notion-web-cli/fjgllpbhbnjdkhgmokagglhkahng...
1•Clipwise-Notion•40m ago•0 comments

Organizing with Bayes

https://heat-shield.space/organizing_with_bayes.html
1•airhangerf15•40m ago•0 comments

jev-router: route to the cheapest model in claude code for your task

https://github.com/gargpratyush/jev-router
3•saikatsg•43m ago•0 comments

EU and Philippines agree free trade deal

https://www.reuters.com/world/asia-pacific/eu-philippines-agree-free-trade-deal-2026-09-22/
1•vrganj•44m ago•0 comments

Looking back at my first year as the Renovate Project Lead

https://www.jvt.me/posts/2026/09/21/renovate-1-year/
1•jamietanna•46m ago•0 comments