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?

Pong in S Favicon

https://pong-in-a-favicon.franzai.com/
1•theanonymousone•2m ago•0 comments

SpaceX Loses $600B After Announcing Acquisition of Cursor AI Coding Agent

https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-afte...
1•Adam-Hincu•2m ago•0 comments

Did Anthropic talk its way into an AI export ban?

https://www.ft.com/content/16ace46c-aeac-40c9-8598-3c01fa4481cb
1•uxhacker•3m ago•0 comments

Show HN: Lelu – authorization engine that catches manipulated AI agents

https://github.com/lelu-auth/lelu
1•Abenezer0923•6m ago•0 comments

Loupe – A iOS app that raises awareness about what native apps can see

https://github.com/mysk-research/loupe
1•Cider9986•8m ago•0 comments

New (Old) 3D Golf: Porting PC-9801 and Virtual Boy to Mega Drive

https://blog.gingerbeardman.com/2026/06/19/new-old-3d-golf-porting-pc-9801-and-virtual-boy-to-meg...
1•msephton•10m ago•0 comments

Simulating Airband AM Radios

https://bitbashing.io/am-radio.html
1•sneleig•12m ago•0 comments

Talking to My Terminal with Local Speech-to-Text and Pi Coding Agent

https://www.agenticcodingweekly.com/p/talking-to-my-terminal-with-local-speech-to-text-and-pi-cod...
1•primaprashant•13m ago•0 comments

Postgres Managed by ClickHouse

https://clickhouse.com/cloud/postgres
2•tosh•14m ago•0 comments

Race Against Time to Save Brixton Market from Private Equity

https://novaramedia.com/2026/06/19/race-against-time-to-save-brixton-market-from-private-equity/
1•vincvinc•14m ago•0 comments

I Made the "Jump to Conclusions Mat" from Office Space

https://jumpoff.space
1•sacredjourney•15m ago•1 comments

Lithuanian startup launches open-source network to detect Shahed-type drones

https://www.lrt.lt/en/news-in-english/19/2965205/lithuanian-startup-launches-open-source-network-...
1•giuliomagnifico•18m ago•0 comments

Show HN: Visualize audio in VSCode using Multiline Cursors

https://github.com/ark-tik/vs-code-music-visualiser
1•kartik0001•18m ago•0 comments

Should everyone be on GLP-1s?

https://www.cbc.ca/lite/story/9.7241872
2•colinprince•18m ago•0 comments

Advent of recorded music is much like a BEC

1•-Zero•20m ago•0 comments

Michael Saylor Admits to Using ChatGPT to Build STRC

https://finance.yahoo.com/markets/stocks/articles/michael-saylor-admits-using-chatgpt-105054359.html
2•ironyman•20m ago•0 comments

Show HN: Overreach – audit your AI agent's diff against the prompt you gave it

https://github.com/Naveja00/OverReach
1•Naveja•24m ago•0 comments

Understanding the Go Runtime: The Reflect Package

https://internals-for-interns.com/posts/go-runtime-reflect/
1•valyala•24m ago•0 comments

What does it mean when the bottom bit of my HMODULE is set?

https://devblogs.microsoft.com/oldnewthing/20260619-00/?p=112447
1•ibobev•27m ago•0 comments

Command and Conquer – Westwood's hit strategy game is coming to the Atari ST

https://www.indieretronews.com/2026/06/command-conquer-westwoods-hit-strategy.html
2•ibobev•28m ago•0 comments

The Goldilocks Principle in Fantasy Strategy

https://www.filfre.net/2026/06/the-goldilocks-principle-in-fantasy-strategy/
1•ibobev•30m ago•0 comments

The Surprising New Arms Dealer to the World

https://www.politico.com/news/magazine/2026/06/20/south-korea-weapons-dealer-trump-00959559
1•JumpCrisscross•31m ago•0 comments

Self Balancing Inverted Pendulum

https://github.com/chrisdoble/self-balancing-inverted-pendulum
2•yeknoda•32m ago•1 comments

16-year-old SATA II SSD survives 1 petabyte of writes, 25x the drive's rating

https://www.tomshardware.com/pc-components/ssds/16-year-old-sata-ii-ssd-survives-1-petabyte-of-wr...
14•giuliomagnifico•33m ago•1 comments

Ask HN: Need advice on distributing and testing what I build

2•darth-pixit•36m ago•0 comments

Google Has Added Agentic Browsing to PageSpeed Insights

https://pagespeed.web.dev/analysis/https-hawksley-dev/bo27z46k5x
2•ethanhawksley•36m ago•1 comments

Lines-of-code considered helpful (or we stop taking sick peoples temperatures)

https://legostormtroopr.substack.com/p/lines-of-code-considered-helpful
1•legostormtroopr•40m ago•0 comments

Spotting Mushrooms

https://verfassungsblog.de/spotting-mushrooms/
1•jruohonen•50m ago•0 comments

Building a Dense Agentic AI CPU Rack Today

https://www.servethehome.com/building-a-dense-agentic-ai-cpu-rack-amd-dell-today/
1•ksec•56m ago•1 comments

Temporary Cloudflare Accounts for AI Agents

https://blog.cloudflare.com/temporary-accounts/
2•farhadhf•57m ago•0 comments