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 Server Called Paranoia: Defend Autistici/Inventati Before September 25

https://cavallette.noblogs.org/2026/08/10083/2
1•rapnie•3m ago•0 comments

A Perfect SimCity

https://www.jeffquast.com/post/a-perfect-simcity/
1•alexisread•3m ago•0 comments

Thunderquakes: A new way to image the Earth's subsurface

https://www.psu.edu/news/earth-and-mineral-sciences/story/thunderquakes-new-way-image-earths-subs...
1•geox•5m ago•0 comments

Hilariously Fast Volume Computation with the Divergence Theorem

https://alyssarosenzweig.ca/blog/hilariously-fast-volume-computation-with-the-divergence-theorem....
1•luu•12m ago•0 comments

Review: A month with a Solargrow solar system

https://james.cridland.net/blog/2026/solargrow-isolarcloud-review/
1•DamonHD•15m ago•0 comments

Judge rules Trump administration illegally punished AI firm Anthropic

https://www.cbsnews.com/news/judge-rules-trump-administration-illegally-punished-ai-firm-anthropic/
2•mgh2•16m ago•2 comments

Show HN: AgentParty – cross-session chat for coding agents across machines

https://github.com/leeguooooo/AgentParty
1•leeguoo•18m ago•0 comments

The Wall Confronting Reliable Coding Agent Autonomy

https://codemanship.wordpress.com/2026/08/28/the-wall-confronting-reliable-coding-agent-autonomy/
1•flail•19m ago•0 comments

Show HN: Rosebed – A Minecraft beta 1.7.3 reimplementation in Zig

https://github.com/mdmrk/rosebed
1•talentedRed•19m ago•0 comments

Tell HN: 18 Words, Zanagrams and Sunflowers Are Now PZL Games

6•pompomsheep•22m ago•1 comments

ClickHouse winning this soo called observability war?

https://clickhouse.com/blog/is-clickhouse-winning-the-observability-wars
1•gingenio•23m ago•0 comments

Show HN: Rafter – an MCP server that shares one team's memory, skills and agents

https://heyrafter.xyz/
1•kristohb•27m ago•0 comments

Summer's over: take out your notebooks (or Loreline)

https://loreline.app/en/journal/august-2026/
1•gr4vityWall•28m ago•0 comments

Another look at SQLite's WAL-Reset bug

https://theconsensus.dev/p/2026/08/23/another-look-at-sqlite-wal-reset.html
2•blueshoess•28m ago•0 comments

The Interactive Way to Go

https://web.archive.org/web/20210831172631/http://playgo.to/iwtg/en/
1•Bluestein•30m ago•0 comments

Symmetries in Boolean Scans with APL

https://ap29600.github.io/boolean_scans.html
1•fanf2•31m ago•0 comments

Show HN: Open-source agent harness with team collaboration

https://www.opensession.com/announcement
1•9ranty•33m ago•0 comments

Overcooked? Why robotic pizza makers are failing

https://www.bbc.com/news/articles/czxq0wgkkdjo
4•vinni2•35m ago•1 comments

Agnes AI Releases Agnes 2.5 Pro Beta

https://artificialanalysis.ai/articles/agnes-ai-releases-agnes-2-5-pro-beta
1•frozenseven•36m ago•0 comments

Interactive Warhammer 40k Galaxy Map – Cartographia Imperialis

https://cartographia40k.com/
2•gbxyz•38m ago•0 comments

More Japan hotels offer sleep tourism experiences to promote better sleep

https://mainichi.jp/english/articles/20260826/p2g/00m/0bu/016000c
1•giuliomagnifico•41m ago•0 comments

Benchmarking Vector Indexes

https://www.percona.com/blog/benchmarking-vector-indexes/
1•lbw1215•46m ago•0 comments

AMD Jumps from ROCm 7.14 to ROCm 10.0 with Rocm.ai

https://www.phoronix.com/news/AMD-ROCm-10.0
3•Levitating•46m ago•0 comments

GhostMeet – a Google Meet transcriber with no bot in your call

https://chromewebstore.google.com/detail/ghostmeet/figodpdocbgklmeglohdjomeikabfpeo
1•sahilpradhan•46m ago•0 comments

Compact 2D/3D game engine

https://natiny.com/
1•bwidlar•51m ago•0 comments

Simon Weckert creates Digital Camouflage shirt to avoid AI video surveillance

https://www.dezeen.com/2026/08/25/digital-camouflage-shirt-ai-video-surveillance-simon-weckert/
2•mywacaday•51m ago•0 comments

Elon Musk's xAI used child porn to train Grok models, lawsuit says

https://arstechnica.com/tech-policy/2026/08/elon-musks-xai-used-child-porn-to-train-grok-models-l...
4•KingMob•52m ago•2 comments

I made a game with ads you can remove by beating the hard mode once

https://apps.apple.com/ie/app/qube-mobile/id6797254645
1•shadylabs•53m ago•0 comments

VGPU by Vercel: The WebGPU library, designed for agents.

https://vgpu.sh
1•handfuloflight•56m ago•0 comments

SoapProxyApp – A lightweight HTTP/SOAP API debugger

https://github.com/milanmilic/SoapProxyApp
1•milan_milic•57m ago•0 comments