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

C++ standard libray with automated memory management

https://github.com/pg83/std
1•pshirshov•22s ago•0 comments

LocalStack License Changed, CI First to Know

https://kaeruct.github.io/posts/2026/03/28/localstack-changed-its-license/
1•kaeruct•1m ago•0 comments

Wristband enables wearers to control a robotic hand with their own movements

https://news.mit.edu/2026/wristband-enables-wearers-control-robotic-hand-with-own-movements-0325
1•gnabgib•1m ago•0 comments

The inner life we're trading away

https://bigthink.com/philosophy/the-inner-life-were-trading-away/
1•Brajeshwar•2m ago•0 comments

The CEO Cost Function

https://carette.xyz/posts/automated_ceo/
1•acarette•4m ago•0 comments

Go Micro became something bigger

https://micro.mu/docs/go-micro.html
1•asim•4m ago•0 comments

Generating code faster is only valuable if you can validate every change

https://bencane.com/posts/2026-03-26/
1•madflojo•6m ago•0 comments

The Outage Era: Cantonize the Codebase

https://velaru.com/journal/the-outage-era-cantonize-the-codebase
1•ksteigerwald•6m ago•0 comments

Govern Your AI Agents. Operate with Oversight

https://stagent.io/
1•navam_io•9m ago•0 comments

Show HN: Epismo CLI – Make human-AI workflows reusable, like GitHub did for code

https://www.npmjs.com/package/epismo
1•hirokiyn•10m ago•0 comments

Bug fixes for larkos optimizations for other of my software

1•Okerew•10m ago•0 comments

What about Juniors?

https://brooker.co.za/blog/2026/03/25/ic-junior.html
1•vinhnx•11m ago•0 comments

Audio tapes reveal mass rule-breaking in Milgram's obedience experiments

https://www.psypost.org/audio-tapes-reveal-mass-rule-breaking-in-milgram-s-obedience-experiments-...
1•lentoutcry•14m ago•0 comments

The Lazarus Sign

https://en.wikipedia.org/wiki/Lazarus_sign
1•signorovitch•19m ago•1 comments

Neural Text Steganography

https://massa-ai.freeboxos.fr/textego/
1•asxndu•20m ago•0 comments

Mystery medical episode left astronaut unable to speak—1 of NASA's biggest risks

https://www.livescience.com/space/space-exploration/mystery-medical-episode-that-left-astronaut-u...
1•bookofjoe•22m ago•0 comments

AI is making CEO's delusional [video]

https://www.youtube.com/watch?v=Q6nem-F8AG8
4•rossdavidh•24m ago•0 comments

Lausd joins suit against social media companies

https://laist.com/brief/news/education/los-angeles-unified-school-district-lausd/los-angeles-unif...
1•freshtake•27m ago•0 comments

Show HN: Code typing game to increase your typing speed in 10 languages

https://coderacer.dev
1•Coderacer1•29m ago•0 comments

Canadian man says U.S. border officers made him give DNA sample

https://www.cbc.ca/news/canada/windsor/us-border-dna-canadian-man-cbp-cross-larson-dingell-raskin...
3•geox•30m ago•0 comments

What to Do About Those Menu Item Icons in macOS 26 Tahoe

https://mastodon.social/@stroughtonsmith/116262411548746327
2•erickhill•31m ago•0 comments

We built a multi-agent research hub. The waitlist is a reverse-CAPTCHA

https://enlidea.com
1•LZK•33m ago•1 comments

Folk are getting dangerously attached to AI that always tells them they're right

https://www.theregister.com/2026/03/27/sycophantic_ai_risks/
27•Brajeshwar•33m ago•13 comments

The risk of AI isn't making us lazy, but making "lazy" look productive

3•acmerfight•34m ago•1 comments

I built an AI that tailors your CV to every job in seconds

1•alebarbon•36m ago•0 comments

For-Agent

https://github.com/reposwarm/reposwarm-cli/wiki/--for-agent
1•royosherove•40m ago•0 comments

Show HN: Loreline, narrative language transpiled via Haxe: C++/C#/JS/Java/Py/Lua

https://loreline.app/en/docs/technical-overview/
1•jeremyfa•40m ago•1 comments

Thousands risk of deadly complications recent exposure to measles in 11 states

https://www.dailymail.co.uk/health/article-15686151/deadly-measles-brain-swelling-virus-surge.html
2•Bender•41m ago•0 comments

Can humans have babies in space? It may be harder than expected

https://www.space.com/space-exploration/human-spaceflight/having-babies-in-space-may-be-harder-th...
3•Brajeshwar•43m ago•0 comments

Difftastic

https://difftastic.wilfred.me.uk
2•KolmogorovComp•44m ago•0 comments