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?

Europe makes trillion-euro bet to revive its battered industry

https://www.reuters.com/commentary/reuters-open-interest/europe-makes-trillion-euro-bet-revive-it...
1•JumpCrisscross•4m ago•0 comments

US Government map of Africa mislabels every country at global conference

https://www.reuters.com/world/africa/us-government-map-africa-mislabels-every-country-global-conf...
2•andsoitis•8m ago•1 comments

A YC Startup That Wants to Kill Tokenmaxxing Just Raised $13.5M

https://www.businessinsider.com/weave-funding-tokenmaxxing-startup-y-combinator-ai-coding-spend-d...
1•gmays•12m ago•0 comments

How to Group and Organize Notebooks in NotebookLM (Collections)

https://www.nlmtools.com/blog/notebooklm-collections-guide
1•trungpv1601•16m ago•0 comments

Show HN: Isopolis – isometric pixel map of SF

https://sf.isopolis.city/
4•nuwandavek•21m ago•1 comments

Logic and Ontology

https://plato.stanford.edu/entries/logic-ontology/
1•nill0•24m ago•0 comments

Show HN: Record Your Accomplishments

https://accomplishments.app/
1•samteeeee•29m ago•0 comments

CP/M-386 – CP/M for 386 protected mode, derived from CP/M‑68K

https://github.com/johnsonjh/cpm386
2•TMWNN•29m ago•0 comments

Living Underwater in 2026: DEEP's New Subsea Habitat; Vanguard

https://www.cnet.com/science/living-underwater-in-2026-new-ocean-habitat-just-dropped/
1•Gaishan•30m ago•0 comments

I Built and Battle Tested My OSAI Agent

https://medium.com/@jacobdiamond/how-i-built-and-battle-tested-my-osai-agent-f30e4f0667f1
2•zilbon•32m ago•0 comments

Boardwalk Hotel and Casino (1966–2006) · a Las Vegas Strip Memorial

https://lvboardwalk.com/
1•paulnpace•32m ago•0 comments

5.3 Earthquake in Suez, Egypt

https://earthquake.usgs.gov/earthquakes/eventpage/us6000thpb/executive
2•marc__1•39m ago•0 comments

Hotspots and Nine Slices (what's new in Easel)

https://easel.games/blog/2026-july-update
1•BSTRhino•40m ago•1 comments

The Crisis in Mathematics and the Prospect of AIcademia

https://www.ryansimonelli.com/absolute-irony-blog/the-crisis-in-mathematics-and-the-prospect-of-a...
2•lexandstuff•41m ago•0 comments

Descubrimientos de Graphlab

https://github.com/cripto-bot/graphlab-discoveries
1•jhon987•41m ago•0 comments

Show HN: ssh ssh.place

https://ssh.place
2•jeninh•44m ago•0 comments

Boris Cherny on Trying to Get Claude Code to Rewrite the Claude App

https://daringfireball.net/linked/2026/08/02/cherny-claude-swift
4•robenkleene•45m ago•0 comments

An Integrative Appraisal Model of Epistemic Curiosity

https://pmc.ncbi.nlm.nih.gov/articles/PMC12894534/
1•toomuchtodo•54m ago•0 comments

Pg_savior: A Postgres extension to avoid accidental mistakes

https://github.com/viggy28/pg_savior
1•thunderbong•54m ago•0 comments

I made an interactive map for the Adelaide Rally

https://interactive-adelaide-rally.vercel.app/
2•rakmo•55m ago•0 comments

Why Book Corners won't sync contributions back to OpenStreetMap

https://www.andreagrandi.it/posts/why-book-corners-wont-sync-contributions-back-to-openstreetmap/
11•pizzaiolo•55m ago•2 comments

Accepting a Messy Git History

https://beza1e1.tuxen.de/git_two_users.html
1•birdculture•58m ago•0 comments

Frontis-MA1: Open 35B model toward recursive self-improvement

https://frontisai.github.io/OpenRSI/
1•DSemba•1h ago•0 comments

Show HN: mlxsh A lightweight CLI to serve multiple local LLMs on Apple

https://github.com/ansnadeem/mlxsh
1•ansnadeem•1h ago•0 comments

The Penny Cyclopædia of the Society for the Diffusion of Useful Knowledge (2012)

https://archive.org/details/ThePennyCyclopaediaOfTheSocietyForTheDiffusionOfUsefulKnowledge
1•nativeit•1h ago•0 comments

Connes' Rigidity Theorem: Disproof of Open AI's Counterexample and Proof

https://philarchive.org/rec/NIEWTC
3•gone35•1h ago•0 comments

Show HN: Sixwhyo – A six year old agent reviewing your code

https://6yo.dev/
1•hxii•1h ago•0 comments

NF humanoid disarm protocol: Fire-alarm protocol to stop humanoid robots

https://github.com/humblelistener/NF_HDP
1•humblelistener•1h ago•1 comments

The Toad Medicine Boom Was Built on a Myth

https://www.bloomberg.com/news/articles/2026-07-31/what-is-5-meo-dmt-the-god-molecule-and-the-per...
1•wslh•1h ago•1 comments

Ask HN: What's Next for LLMs?

3•apatheticonion•1h ago•0 comments