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?

Morsel-Driven Parallelism: A NUMA-Aware Query Evaluation Framework [pdf]

https://15721.courses.cs.cmu.edu/spring2016/papers/p743-leis.pdf
1•ksec•1m ago•0 comments

Amiga OS (UAOS)

https://github.com/stevereaver/uaos
1•doener•4m ago•0 comments

Show HN: My queue model made in a game

1•Lluis_0x•4m ago•0 comments

TestFlight for Steam

https://userplay.io/
1•0xnyn•8m ago•0 comments

What if you could build your SaaS without paying upfront?

https://www.indiehackers.com/post/what-if-you-could-build-your-saas-without-paying-upfront-908423...
1•AutFlowStudio•10m ago•0 comments

Keep It Up – Cookie Clicker, for Uptime

https://simpleobservability.com/games/keep-it-up
1•khazit•12m ago•0 comments

Young people don't trust AI – or the billionaires that tell us we should love AI

https://www.techradar.com/pro/young-people-increasingly-dont-trust-ai-or-the-billionaires-that-ke...
2•ksec•13m ago•0 comments

RVA23 vs. ARMv9 a Small Experiment

https://gist.github.com/camel-cdr/3a7aed17e017e8cab675ad696c7d14af
2•birdculture•14m ago•0 comments

Schism Tracker

https://schismtracker.org/
2•Bluestein•18m ago•0 comments

Show HN: The Data Forge – Generate up to 100K rows of JSON/CSV/SQL test data

https://zlvox.com/tools/data-forge
1•zlvox•19m ago•0 comments

Show HN: Customhouse – deterministic MCP proxy that blocks agent exfiltration

https://github.com/vineetpant/customhouse
1•vineetpant•23m ago•1 comments

SSOG: Near linear Visual-Attention that doesn't score but steers

https://www.pisoni.ai/posts/ssog/
1•4rtemi5•24m ago•2 comments

Bubblewrap is the only sandbox you need

https://lorentz.app/blog-item.html?id=bubblewrap
1•baalimago•25m ago•0 comments

Bay Area House Party

https://www.astralcodexten.com/p/the-foothills-of-bay-area-house-party
1•sgt101•28m ago•0 comments

Why travellers are obsessed with foreign supermarkets

https://www.bbc.com/travel/article/20260811-the-supermarket-is-becoming-a-tourist-attraction
1•edward•30m ago•0 comments

The Economist Who Predicted 2008 Crash Says AI Bubble Bursts Soon – Steve Keen [video]

https://www.youtube.com/watch?v=nx5FiWfD5U4
1•SockThief•32m ago•2 comments

Public preview runtimes on AWS Lambda: Node.js 26 and Python 3.15

https://aws.amazon.com/blogs/compute/introducing-public-preview-runtimes-on-aws-lambda-starting-w...
1•lumpa•33m ago•0 comments

What Is Reinforcement Learning

https://www.mathworks.com/discovery/reinforcement-learning.html
1•teleforce•36m ago•0 comments

Is Software Still the Point?

https://janbosch.com/field-notes-is-software-still-the-point/
2•ftomassetti•37m ago•0 comments

Beau­tiful Racket: Intro­duc­tion to language-oriented program­ming using Racket

https://beautifulracket.com/
1•signa11•40m ago•0 comments

Ask HN: Where to learn software engineering fundamentals?

1•mstank•40m ago•0 comments

US Navy 3D prints combat-ready drones and parts aboard during exercise

https://www.tomshardware.com/tech-industry/drones/flight-ready-drones-3d-printed-and-built-on-air...
1•giuliomagnifico•41m ago•0 comments

Show HN: Online FPS Test

https://fpstest.co/
2•artiomyak•42m ago•0 comments

The Two Factions of C++

https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
1•signa11•43m ago•0 comments

App to detect and report potholes in Bengaluru

https://twitter.com/VaibhavSisinty/status/2088702363867742365
1•rohitpaulk•44m ago•0 comments

Show HN: RNet – AI token service provider

2•nextma•44m ago•0 comments

Remaking Party House

https://herecomesthemoon.net/2026/08/remaking-party-house/
1•signa11•44m ago•0 comments

Narrate Complete Books Using Qwen3 TTS, Natural Sounding

https://github.com/drmhse/tts-rs
1•drmhse•47m ago•0 comments

White House authorizes private companies to launch hack-back cyberattacks

https://www.tomshardware.com/tech-industry/cyber-security/white-house-authorizes-private-companie...
1•sbulaev•48m ago•0 comments

Science at LLM Speed

https://christophermeiklejohn.com/series/the-machine-in-the-lab/science-at-llm-speed/
1•jruohonen•49m ago•1 comments