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?

The Nature and Purpose of Code

https://blog.moertel.com/posts/2026-07-23-on-the-nature-and-purpose-of-code.html
1•chmaynard•30s ago•0 comments

The perils of parsing type inference declarations in C

https://sebsite.pw/w/20260725-auto.html
1•jandeboevrie•58s ago•0 comments

Researchers replace downloaded macOS apps with evil twins, Apple shrugs

https://www.theregister.com/security/2026/07/24/researchers-replace-downloaded-macos-apps-with-ev...
1•sbulaev•1m ago•0 comments

Herv AI – Spatial Intelligence

https://hervai.com
1•kayumbaherve•8m ago•0 comments

GitHub

2•Julipaz•9m ago•1 comments

Reactive Python Notebooks in Jupyter

https://github.com/ipyflow/ipyflow
1•smacke•14m ago•0 comments

Show HN: AI Anime Finder – Natural language semantic search for AniList

https://zlvox.com/tools/anime-finder
1•mrdisloyal•16m ago•0 comments

AutoCO: An Online Continuous Optimization System for Phase-Changing DB Workloads

https://dl.acm.org/doi/10.1145/3832323
1•matt_d•16m ago•0 comments

Extinct Media Museum Tokyo

https://extinct-media-museum.blog.jp/otemachi/
1•sohkamyung•17m ago•0 comments

Show HN: Rivers – a Rust/Python orchestrator with native OIDC and forward auth

https://github.com/ion-elgreco/rivers
1•ion-elgreco•20m ago•0 comments

Google Was a Lifeline for Publishers. Now Some Are Thinking of Cutting It Off

https://www.wsj.com/business/media/google-search-publishers-ai-content-0fb06e41
2•1vuio0pswjnm7•31m ago•1 comments

Companies are optimizing models for specific benchmarks

1•mzubairtahir•34m ago•0 comments

Split Screen – browser workspaces to replace tab sprawl (free, local)

https://github.com/MIR-2025/brave-ext/tree/main/splitscreen
1•ruusvuu•36m ago•0 comments

A Tale of Two Tailnets

https://blog.exe.dev/a-tale-of-two-tailnets
2•shintoist•37m ago•0 comments

Shawn Ryan announces partnership with glacier [video]

https://www.youtube.com/watch?v=yB05HiKCCuI[video]
1•smalltorch•38m ago•1 comments

The Global Justice Report

https://globaljusticeproject.wid.world/global-justice-report/
1•homarp•39m ago•0 comments

Trump announces 2028 presidential bid

https://www.smh.com.au/world/trump-announces-2028-presidential-bid-20260725-p60iho.html
9•jiggawatts•49m ago•1 comments

Uber: HR crisis - Darden MBA Case Study (2020)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3207044
1•mgh2•54m ago•1 comments

"As millionaires we have a message for our new Prime Minister: Tax us."

https://proudtopay.org
3•teekert•58m ago•2 comments

Michael Stevens and Hannah Fry: The Rest Is Science

https://therestis.com/science
1•tomfakes•1h ago•0 comments

The Architecture of Deep Thought: Fight AI Speed with Cognitive Friction

https://varnam.substack.com/p/the-architecture-of-deep-thought
1•arthurfleck•1h ago•0 comments

Show HN: Sync Claude Code and Codex configs, with a board that shows the drift

https://github.com/slash9494/ai-config-sync-manager
1•slash9494•1h ago•0 comments

AWS announces AWS-bench, an open-source benchmark for AI agents on AWS

https://aws.amazon.com/about-aws/whats-new/2026/07/aws-bench/
2•gslin•1h ago•0 comments

Lawsuits hours after new tariffs take effect, experts say tariffs may not hold

https://www.cnbc.com/2026/07/24/trump-tariffs-lawsuit-301-ieepa.html
2•MilnerRoute•1h ago•0 comments

A single underscore led to an innocent Halifax man's conviction

https://www.cbc.ca/news/politics/man-guilty-michael-barrett-threats-1.7546742
2•cperciva•1h ago•1 comments

Best Open-Weight LLMs by Memory Required (July 2026)

https://claude.ai/public/artifacts/4b74e194-a4b2-414f-a313-8d4b98a92b0b
2•yid•1h ago•1 comments

Coordination layer for AI coding agents, built on Git

https://github.com/zyads/loom-vcs
2•aether-zyads•1h ago•0 comments

An Introduction to Formal Logic(2020) [pdf]

https://logicmatters.net/ifl/pdfs/IFL2_LM.pdf
3•o4c•1h ago•0 comments

UK AISI / Caisi Preliminary Assessment of Kimi K3's Cyber Capabilities

https://www.nist.gov/news-events/news/2026/07/uk-aisi-caisi-preliminary-assessment-kimi-k3s-cyber...
13•walrus01•1h ago•0 comments

Why Do Autistic People Talk Like Animé Villains?

https://dispatchesfromtheautismwars.substack.com/p/why-do-autistic-people-talk-like
6•barry-cotter•1h ago•2 comments