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?

EVE Online's Carbon engine is now open source: Fenris Creations explains why

https://www.gamesindustry.biz/eve-onlines-carbon-engine-is-now-open-source-fenris-creations-expla...
1•Stevvo•59s ago•0 comments

Goodbye, Forever, Probably

https://whitep4nth3r.com/blog/goodbye-forever-probably/
2•backlit4034•4m ago•1 comments

Global Ocean Science Report: most complete picture of ocean science

https://www.ioc.unesco.org/en/articles/global-ocean-science-report-worlds-most-complete-picture-o...
3•bryanrasmussen•7m ago•0 comments

Labor Market Tightens Despite Tepid Job Growth as Labor Force Declines Further

https://wolfstreet.com/2026/07/02/labor-market-tightens-despite-tepid-job-growth-as-labor-force-d...
3•toomuchtodo•10m ago•1 comments

Bought an expired domain. Then I inherited their AWS Root account

https://easydns.com/blog/2026/07/03/bought-an-expired-startup-domain-a-few-days-later-i-inherited...
5•StuntPope•10m ago•0 comments

How to migrate from Proxmox VE 8 to 9: step-by-step guide (2026)

https://lucasaguiar.xyz/en/posts/migracao-proxmox-8-9-2026/
2•isfttr•11m ago•0 comments

Show HN: Theta-spec harness agnostic config surface

https://github.com/tamarillo-ai/theta-spec
2•ivanbelenky•11m ago•0 comments

sf house sept 26

2•jadenfix123•13m ago•0 comments

Software, from First Principles

https://fazamhd.com/mental-models/software/
3•faza•18m ago•0 comments

Show HN: Updated my landing page with Fable (retro pixel style)

https://www.tryguildly.com/
5•spiken23•18m ago•2 comments

Cadreen – memory, governance, self-healing, and execution as one system

4•ope_john•18m ago•0 comments

Best 3D Modeling Apps for iPad and Android (2026)

https://bambu3design.com/best-3d-modeling-apps-for-ipad-android-2026-create-3d-models-anywhere/
2•ehsanamel•20m ago•0 comments

You don't need Electron to build native apps in TypeScript [video]

https://www.youtube.com/watch?v=o5RDfAmzE7s
2•arbayi•21m ago•0 comments

AI First: How the Federal Government Is Prioritizing AI over People and Planet

https://stopgreedbuildgreen.climateandcommunity.org/posts/ai-first
10•eatox•25m ago•1 comments

Gaza's Children

https://gazaschildren.com/
11•abdelhousni•28m ago•2 comments

The Lost World (1925) [video]

https://archive.org/details/the.-lost.-world.-1925.1080p.-blu-ray.x-264-sadpanda
2•petethomas•29m ago•0 comments

New serious vulnerabilities spiked around release of Claude Mythos Preview

https://epoch.ai/data-insights/cve-severity-spike
2•cubefox•30m ago•0 comments

Show HN: Pulse v0.2.0

3•xerrs•32m ago•0 comments

AI inference is obviously profitable

https://www.seangoedecke.com/ai-inference-is-obviously-profitable/
4•emirb•32m ago•0 comments

Africans Are Turning to Starlink

https://www.economist.com/middle-east-and-africa/2026/07/02/africans-are-turning-to-starlink
11•bookofjoe•38m ago•1 comments

Ads in ChatGPT

https://ads.openai.com/
4•vlan121•38m ago•1 comments

RememberLI

https://github.com/KlausSchaefers/rememberli
2•klausschaefers•40m ago•0 comments

Special forces ban Volvo/Chinese electric cars over spying fears

https://www.telegraph.co.uk/news/2026/07/03/special-forces-bans-chinese-cars-spying-fears-volvo/
6•cwwc•40m ago•0 comments

Show HN: Mlx-serve – LLM inference server for Apple Silicon, written in Zig

https://mlxserve.com/
2•ddalcu•40m ago•0 comments

MiniKotlin – A Kotlin Compiler That Runs in a Browser Tab

https://minikotlin.run
2•TheWiggles•43m ago•0 comments

Show HN: ContextCodeCache in Rust

https://github.com/colwill/ccc
3•colwont•43m ago•0 comments

Show HN: Maestro – scaffold Go microservices and keep them in sync

https://github.com/Zagforge-Org/maestro
2•anzedev•44m ago•0 comments

Collabora Office 26.04 Keeps AI Optional and Refines Writer and Calc

https://itsfoss.com/news/collabora-office-26-04/
2•mmarian•45m ago•0 comments

Mistralai/Leanstral-1.5-119B-A6B

https://huggingface.co/mistralai/Leanstral-1.5-119B-A6B
3•satvikpendem•46m ago•0 comments

Meta AI chief says their coming LLM has caught up with OpenAI's flagship model

https://www.businessinsider.com/meta-ai-model-catches-up-openai-gpt-5-says-2026-7
3•maxloh•46m ago•0 comments