frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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?

Robert Samuelson, Award-Winning Economics Columnist, Dies at 79

https://www.nytimes.com/2025/12/15/business/media/robert-samuelson-dead.html
1•paulpauper•4m ago•0 comments

There's a Wasp Nest in the Living Room. On Purpose

https://www.nytimes.com/2025/10/24/realestate/luxury-wasp-nest.html
1•paulpauper•5m ago•0 comments

The Architecture of Market Regimes: DXY Structural and Reflexive Layers

https://zenodo.org/records/17958350
1•truongthanminh•8m ago•0 comments

The 30-Minute Exercise: Ask Your Employees to Write Their Job Prompt

https://medium.com/venturehq/the-30-minute-exercise-ask-your-employees-to-write-their-job-prompt-...
2•chtefi•8m ago•0 comments

10 Years of AWS Well-Architected Framework: A Personal Reflection

https://ibrahimcesar.cloud/blog/10-years-aws-well-architected-framework/
1•ibrahimcesar•9m ago•0 comments

Show HN: Deadlight · Zero-JS blogging for hostile networks (Workers and SQLite)

https://github.com/gnarzilla/blog.deadlight
1•gnarzilla_•12m ago•1 comments

Show HN: I kept forgetting the same adulting tasks, so I built an app to help

https://apps.apple.com/us/app/tidylife-life-upkeep/id6756452058
1•hos4m•12m ago•0 comments

The Entry-Level Hiring Process Is Breaking Down

https://www.theatlantic.com/ideas/2025/12/grade-inflation-ai-hiring/685157/
1•jdkee•15m ago•1 comments

An MIT professor was shot at home. Authorities say no suspect is in custody

https://www.pbs.org/newshour/nation/an-mit-professor-was-shot-at-home-authorities-say-no-suspect-...
2•heavyset_go•19m ago•0 comments

Claude Royale: A harness for AI agents to play Clash Royale

https://github.com/houseworthe/claude-royale
1•houseworth•21m ago•1 comments

California judge rules that Tesla engaged in deceptive marketing for Autopilot

https://www.cnbc.com/2025/12/16/california-judge-says-tesla-engaged-in-deceptive-autopilot-market...
7•elsewhen•28m ago•0 comments

AI Tool to Find Expert Scientists

https://www.scientistfinder.ai/
1•Tardigrade10•29m ago•0 comments

OpenBB – Open Financial Terminal

https://github.com/OpenBB-finance/OpenBB
1•oldfuture•29m ago•0 comments

Show HN: GPTImage15.online – a tiny prompt-to-image playground

https://gptimage15.online/
1•wadudu•31m ago•0 comments

The perfect plastic? Plant-based saltwater degradable, zero microplastics

https://www.eurekalert.org/news-releases/1110174
1•thunderbong•32m ago•0 comments

Fundamental nature of living things challenges physicists longtime assumptions

https://www.theatlantic.com/science/2025/12/physics-life-reductionism-complexity/685257/
2•bookofjoe•34m ago•4 comments

Ask HN: What are your predictions for 2026?

4•mfrw•38m ago•1 comments

Locked out: How a gift card purchase destroyed an Apple account

https://appleinsider.com/articles/25/12/13/locked-out-how-a-gift-card-purchase-destroyed-an-apple...
14•nonfamous•40m ago•3 comments

Montreal's New Rail Line Is the Future – Macleans.ca

https://macleans.ca/society/montreals-new-rail-line-is-the-future/
3•MaysonL•40m ago•0 comments

RunsOn: Self-hosted GitHub Actions runners with the full power of AWS EC2

https://runs-on.com/
1•handfuloflight•40m ago•0 comments

Show HN: Video Cards-Turn Articles into Video and Podcast Scripts in Seconds

https://videocards.app
1•ovelv•45m ago•0 comments

India launches DHRUV64, first 1.0 GHz 64-bit microprocessor designed in India

https://theprint.in/india/india-launches-dhruv64-first-indigenously-designed-1-0-ghz-64-bit-micro...
2•imbdb•45m ago•0 comments

The untold story of how Jeffrey Epstein got rich

https://www.nytimes.com/2025/12/16/magazine/jeffrey-epstein-money-scams-investigation.html
7•mathattack•50m ago•1 comments

I cannot imagine writing another line of code again

https://old.reddit.com/r/vibecoding/comments/1pkj1lg/i_cannot_imagine_writing_another_line_of_code/
1•bilater•52m ago•1 comments

DuckDB ODBC Scanner Extension

https://github.com/duckdb/odbc-scanner
1•kermatt•57m ago•1 comments

Video Calling App

https://nonflaky-nonfulminating-crystal.ngrok-free.dev
1•greentimer•58m ago•0 comments

Trump orders blockade of sanctioned oil tankers in and out of Venezuela

https://www.bbc.com/news/articles/c4gej5ezyypo
4•toomuchtodo•58m ago•0 comments

California regulator puts on hold an order to suspend Tesla sales

https://www.theguardian.com/us-news/2025/dec/16/california-dmv-tesla-sales-suspension
1•c420•59m ago•0 comments

TinyTPU [video]

https://www.youtube.com/watch?v=kccs9xk09rw
2•ryandotsmith•1h ago•0 comments

Add GPIO to Your Framework Laptop with This RP2350 Expansion Card

https://www.hackster.io/news/add-gpio-to-your-framework-laptop-with-this-rp2350-expansion-card-7c...
6•openhw•1h ago•1 comments