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?

Are jobs and the world going to be like this, moving forward?

1•chand190•27s ago•0 comments

Louis Rossmann is suing Samsung after firm offers $330 refund

https://www.tomshardware.com/pc-components/ssds/louis-rossman-threatens-to-take-samsung-to-court-...
1•iancmceachern•1m ago•0 comments

AI Agent Bankrupted Their Operator While Trying to Scan DN42

https://lantian.pub/en/article/fun/ai-agent-bankrupted-their-operator-scan-dn42lantian.lantian/
2•xiaoyu2006•2m ago•0 comments

Show HN: Kickbacks.ai – pays you for Claude Code spinner impressions

https://kickbacks.ai
1•devtoolsguides•3m ago•0 comments

Show HN: Proton – A easy CGO-free immediate-mode GUI framework for Go

1•CzaxTanmay•4m ago•0 comments

Asciline – real-time ASCII video rendering engine

https://github.com/YusufB5/ASCILINE
1•godot•5m ago•0 comments

Largest AI Data Center: Doubling every 7 months

https://epoch.ai/data-insights/largest-data-center-compute
2•ilreb•5m ago•0 comments

Show HN: VeloIQ – An internal OS to build full-stack FastAPI apps in minutes

https://veloiq.dev
1•cesarlugos1s•13m ago•0 comments

DevRel is becoming a freelance job now? (India specific)

1•arpansac•18m ago•0 comments

Study Finds Competitors Share Directors More Often Than Previously Known

https://law.stanford.edu/press/award-winning-antitrust-study-finds-competitors-share-directors-fa...
1•toomuchtodo•18m ago•1 comments

Foreign business owners are scrambling to raise capital to stay in Japan

https://tokyopaladin.substack.com/p/foreign-business-owners-are-scrambling
1•zdw•20m ago•0 comments

Device Clock Generation

https://zipcpu.com/blog/2025/12/17/devclk.html
2•mfiguiere•20m ago•0 comments

Git v2.55 will release with Rust support enabled by default

https://lore.kernel.org/lkml/xmqqik7pqeiq.fsf@gitster.g/
1•tapanjk•24m ago•0 comments

AppList – Minimalist App Launcher for iPhone

https://sxp.studio/apps/applist
1•gurjeet•24m ago•0 comments

Ask HN: Is anyone running AI agents in production reliably – what's your stack?

2•nehpets•34m ago•0 comments

I built a fast, edge-native personal site with Astro, Cloudflare D1, and R2

https://www.noahhan.com/
1•Felomeng•34m ago•0 comments

InkyCap – Typst-based PKM for academics, writers, and everyone

https://inkycap.org/
1•nikolay•36m ago•1 comments

The Normalization of Deviance in AI

https://embracethered.com/blog/posts/2025/the-normalization-of-deviance-in-ai/
1•gurjeet•40m ago•0 comments

Koalas at risk of death once seven-day temperatures rise beyond 27C

https://www.abc.net.au/news/science/2026-05-27/koala-deaths-linked-to-a-few-extra-degrees-of-heat...
4•bryanrasmussen•47m ago•0 comments

Linear Coding Sessions

https://linear.app/docs/coding-sessions
2•samtheprogram•47m ago•0 comments

Reading Is a System

https://docs.google.com/presentation/d/1rPX2rZ80CmHJCKZBziS1BtdodQM4NJhkNIz8EhF9nHM/edit?usp=sharing
1•_bramses•54m ago•1 comments

Tesla gets go-ahead to sell self-driving technology in Belgium

https://www.reuters.com/business/autos-transportation/tesla-gets-go-ahead-sell-self-driving-techn...
1•andsoitis•54m ago•0 comments

Blindzone Glare Elimination Mirror Method [pdf]

https://www.nhtsa.gov/sites/nhtsa.gov/files/blindzoneglaremirrormethod.pdf
1•thunderbong•54m ago•0 comments

Sophia NLU Home Assistant – On Device, Low Compute, No Internet, Voice Assistant

2•aquila416•55m ago•0 comments

A 60fps eInk Monitor, the Modos Flow [video]

https://www.youtube.com/watch?v=nHbA2-_qzH4
3•razorbeamz•58m ago•1 comments

Stdx, Rust's extended standard library

https://kerkour.com/stdx
3•manyatoms•58m ago•0 comments

Harry's Game (ITV, 1982)

https://archive.org/details/harrys-game-episode-2
1•petethomas•1h ago•0 comments

Simplify: Move Code into Database Functions

https://sive.rs/pg
2•privong•1h ago•0 comments

Voronoi Village

https://wwwtyro.github.io/voronoi-village/
2•wwwtyro•1h ago•1 comments

Katja Hoyer on Weimar, the GDR, and the German Character (Ep. 279)

https://conversationswithtyler.com/episodes/katja-hoyer/
1•paulpauper•1h ago•0 comments