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?

FTN Clearing Houz

https://clrghouz.bbs.dege.au/about
1•bilegeek•45s ago•0 comments

Migrating Raku DBIish gh actions pipeline to DSCI

https://gemini.google.com/share/1e778423958a
1•melezhik•1m ago•0 comments

The Simple Elegance of the Integrated Timing Belt Loopback Fastener

https://danielmangum.com/posts/integrated-timing-belt-loopback-fastener/
1•hasheddan•1m ago•0 comments

Google search filter by time seems broken

1•camel-cdr•2m ago•0 comments

A Yale AI-cheating dispute became a 13-count federal lawsuit

https://arstechnica.com/tech-policy/2026/07/how-a-yale-ai-cheating-dispute-became-a-13-count-fede...
1•pseudolus•3m ago•0 comments

Anthropic says its AI models also hacked three organizations on their own

https://www.engadget.com/2227630/anthropic-ai-models-hacked-three-organizations-on-their-own/
1•madradavid•4m ago•0 comments

Debian CVE Fixes over Time

https://sigwait.org/~alex/blog/2026/07/30/h1rmR5.html
1•henry_flower•5m ago•0 comments

Gluten Explained: Who Needs a Gluten-Free Diet?

https://ethansmith140833.substack.com/p/gluten-explained-who-really-needs
1•trimoxer•8m ago•0 comments

PTA Science Platform – open-source pulsar timing array analysis pipeline

https://github.com/lijujames311/pta-science-platform
1•Liju311•9m ago•0 comments

Robust-Jobserver Spec

https://codeberg.org/mlugg/robust-jobserver/src/branch/main/spec.md
1•reiniermaas•11m ago•0 comments

Show HN: MCP inspection for live Avalonia, WPF, WinUI and MAUI apps

https://github.com/trrahul/XamlMcp
2•trrahul•12m ago•0 comments

GitHub shadowbanned an NPM package with 37M+ weekly downloads

2•mattlue•13m ago•0 comments

An OpenAI model proves that non-sofic groups exist

https://twitter.com/SebastienBubeck/status/2083456300692979886
1•linzhangrun•15m ago•0 comments

Show HN: Weightlift – the missing package manager for downloading model weights

https://weightlift.dev/
1•wassimgr•19m ago•0 comments

AI coding agents should optimize for less owned code

https://www.openenergytransition.org/posts/ai-coding-agents-should-optimize-for-less-owned-code
1•lyoncy•20m ago•0 comments

Graphics Programming Weekly 448

https://www.jendrikillner.com/post/graphics-programming-weekly-issue-448/
1•wertyk•24m ago•0 comments

AI labels to be compulsory on authentic-looking content under EU rules

https://www.theguardian.com/technology/2026/jul/31/ai-labels-to-be-compulsory-on-authentic-lookin...
1•pseudolus•25m ago•0 comments

Norway became a global salmon behemoth. Now it's facing the consequences

https://www.abc.net.au/news/2026-07-28/how-norway-s-salmon-industry-became-a-global-behemoth/1069...
1•theanonymousone•27m ago•0 comments

Marketing post 1 for beadedcloud environmental intelligence

https://www.beaded.cloud/
1•erik_from_alask•30m ago•1 comments

Kill Chain: How AI Is Transforming Modern Warfare [video]

https://www.youtube.com/watch?v=xjhywQlzJYo
1•mgh2•31m ago•1 comments

SBCL – Assignment convert all the things

https://github.com/sbcl/sbcl/commit/f45092cdcd34fff9f6fdaa20df972328cee354d0
1•BoingBoomTschak•33m ago•0 comments

Chiavari News – le notizie di oggi dal Tigullio

https://chiavarinews.com/
1•xmorse•35m ago•0 comments

How to speed up the Rust compiler in July 2026

https://nnethercote.github.io/2026/07/31/how-to-speed-up-the-rust-compiler-in-july-2026.html
1•birdculture•39m ago•0 comments

Show HN: I rewrote my ML web apps to run in-browser and deleted the server

https://aegishumanai.com/
1•kmloh•41m ago•0 comments

We're 15-year-olds tired of switching study apps, so we built our own

https://reviscio.com
2•benoqjdi•41m ago•0 comments

Watched movie organiser for Windows CE 2.0 and Windows 98

https://github.com/PeCeTfull/PocketablePopcorn.NET
1•sanqui•43m ago•0 comments

Show HN: Horus-runtime – Train your own tiny LLM from scratch

https://github.com/temple-compute/pantheon/tree/main/workflows/ai/w02-tiny-llm
1•chdominguez•47m ago•0 comments

Ask HN: Why did Fastify never get more hype?

1•dolia•48m ago•0 comments

TokenIgnite – Runtime Figma-to-code validation for AI workflows

https://tokenignite.live
1•_nb_visuals_•50m ago•0 comments

Kasparov versus the World (1999)

https://en.wikipedia.org/wiki/Kasparov_versus_the_World
2•teleforce•50m ago•0 comments