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?

Business cycle and herding behavior in stock returns: theory and evidence

https://link.springer.com/article/10.1186/s40854-023-00540-z
1•tesserato•1m ago•0 comments

Ask HN: Better places to work for burntout SWE?

1•conqrr•2m ago•0 comments

What I Learned Using Neon Postgres for a Week of Live Traffic

https://ishan.page/blog/dbms-neon/
1•ishandotpage•2m ago•0 comments

LabGuy's World: – 5FPn CRT Testing

https://labguysworld.com/5FPn_CRT_Tester.htm
1•WorldPeas•3m ago•0 comments

Tono, actually

https://olympiatime.com/2025/12/06/tono-actually/
1•Lammy•4m ago•0 comments

Linux CVEs, more than you ever wanted to know

http://www.kroah.com/log/blog/2025/12/08/linux-cves-more-than-you-ever-wanted-to-know/
1•voxadam•4m ago•0 comments

Pigeons rival humans ability to spot cancer (2015)

https://www.sfgate.com/news/article/Pigeons-rival-humans-in-ability-to-spot-cancer-6643929.php
1•hyperific•4m ago•1 comments

How well do you know C++ auto type deduction?

https://www.volatileint.dev/posts/auto-type-deduction-gauntlet/
1•volatileint•8m ago•0 comments

Event Sensors Bring Just the Right Data to Device Makers

https://spectrum.ieee.org/event-sensors-to-the-edge
1•sohkamyung•8m ago•0 comments

Show HN: An Incident Intelligence Layer that learns from real oncall work

1•mpingu•10m ago•0 comments

Show HN: Parent-child activity to help kids spot clickbaits and doom-content

https://submerge.rs/vesti/?lang=en
1•petarsubotic•10m ago•0 comments

Ask HN: How can someone handle inbound emails with threading in simple way?

2•hamzaawan•11m ago•0 comments

Send a Free Santa Video

https://www.synthesia.io/santa
1•selimonder•12m ago•0 comments

Coding Agents Are Outliers

https://vivekhaldar.com/articles/coding-agents-are-outliers/
1•gandalfgeek•15m ago•0 comments

McDonald's Pulls Down AI-Generated Holiday Ad After Deluge of Mockery

https://futurism.com/artificial-intelligence/mcdonalds-ai-generated-commercial
1•kevin061•16m ago•0 comments

I Don't Want to Be a Ping-Pong Ball Anymore

https://www.tristanisham.com/blog/i-dont-want-to-be-a-ping-pong-ball-anymore/
1•Atalocke•16m ago•0 comments

InovaTrust – Help a Brother Out

https://www.inovatrust.net/i/2cb3njjta6mdc1zizu8jq
1•investmentpro•17m ago•0 comments

We Built FridayAI: Founders Need Their Time Back

https://www.forcivate.com/blog/why-we-built-fridayai
1•nairabatoyan•17m ago•1 comments

Show HN: My small tool blew up unexpectedly

https://kaicbento.substack.com/p/what-happens-when-your-open-source
1•kaicbento•17m ago•0 comments

Tremulous an open source quake3 based RTS/FPS game ported to the web

https://www.tremulous.online
1•justinl1996•18m ago•0 comments

How to Guess a Gradient

https://arxiv.org/abs/2312.04709
1•tbruckner•20m ago•0 comments

Built a LangChain App for a Startup, Here's What Mattered

https://old.reddit.com/r/LangChain/comments/1pgyc1t/built_a_langchain_app_for_a_startup_heres_what/
1•ethanpil•21m ago•0 comments

Show HN: Monetizing an API using private keys

https://img.arible.co
1•sim04ful•23m ago•0 comments

A welcome pit stop: the US college using parking lots to help unhoused students

https://www.theguardian.com/education/2025/dec/09/us-university-student-homelessness-solutions
3•mitchbob•28m ago•1 comments

Show HN: DocNode, A TypeScript OT library for local-first apps

https://github.com/docnode/docnode
1•GermanJablo•28m ago•0 comments

FDA to probe whether adult deaths linked to coronavirus vaccine

https://www.washingtonpost.com/health/2025/12/09/vaccine-covid-coronavirus-safety-fda/
3•bookofjoe•31m ago•1 comments

Whatever Happened to NFTs?

https://ritholtz.com/2025/12/what-happened-nfts/
5•zdw•33m ago•1 comments

Show HN: We built a no-logs cloud provider where users are just a 32-char token

https://servury.com/blog/behind-the-firewall-our-journey-to-a-no-logs-no-compromise-platform/
2•ybceo•34m ago•0 comments

Binary Range Expressions

https://www.proxylity.com/docs/destinations/brex-syntax.html
2•mlhpdx•39m ago•0 comments

The Politics of Superintelligence

https://www.noemamag.com/the-politics-of-superintelligence/
2•runningmike•40m ago•0 comments