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?

Open-Source Intelligence

https://en.wikipedia.org/wiki/Open-source_intelligence
2•wseqyrku•5m ago•0 comments

Principia: Relational Physics Tests for Video Models

https://principiabench.github.io/
1•porridgeraisin•7m ago•0 comments

The online shopping trend where you buy nothing

https://restofworld.org/2026/south-korea-shopping-trend/
1•paulpauper•7m ago•0 comments

Lookup Which Local Veterinarians Are Owned by Private Equity Groups

https://privateequityvet.org/vet-list/
1•WarOnPrivacy•8m ago•0 comments

Why Meta Wanted to Pay $18B [video]

https://www.youtube.com/watch?v=IUMUJgjDvU0
2•DyslexicAtheist•8m ago•0 comments

Gawk Extensions Library

https://gawkextlib.sourceforge.net/
1•shakna•9m ago•0 comments

How to Scale an Engineering Team in 90 Days: A Practical Latam Playbook

https://nearshorebusinesssolutions.com/news/scale-engineering-team-90-days/
1•etabone•10m ago•0 comments

Active Prelude to Calculus

https://activecalculus.org/prelude/root-1-2.html
1•gurjeet•11m ago•0 comments

My Folding iPhone Predictions

https://birchtree.me/blog/my-folding-iphone-predictions/
1•CharlesW•11m ago•0 comments

RISC-V Emulator and Linux System from Scratch

https://github.com/WerWolv/riscv-emulator
3•Bluestein•14m ago•0 comments

GeoComix

http://huxter.org/c64/geos/geocomix.htm
3•erickhill•18m ago•0 comments

Using a Linux Laptop in 2026

https://aoli.al/blogs/linux-laptop/
2•aoli-al•20m ago•0 comments

Active Calculus – Free for students and open-source materials for instructors

https://activecalculus.org/
2•gurjeet•20m ago•0 comments

Recursion into Madness

https://blog.coredump.cx/p/recursion-into-madness
2•surprisetalk•21m ago•0 comments

How does Astra's computer use actually work?

https://twitter.com/kylejeong/status/2097077446663372966
1•Kylejeong21•22m ago•1 comments

Optimising Harness Self-Recursion

https://lexifina.com/blog/optimising-harness-self-recursion
1•alansaber•24m ago•0 comments

SoC Analysts Read Firewall Logs: What You Are Expected to Know

https://medium.com/@jbird24/how-to-read-firewall-logs-for-soc-analysts-what-you-are-expected-to-k...
2•syumei•27m ago•0 comments

Show HN: Keyclasp – Let agents use tokens without putting them in prompts

https://github.com/AndreaCatalucci/keyclasp
1•thecatalucci•28m ago•0 comments

Show HN: Worldfixture – An OSS fake company your software can interact with

https://worldfixture.com/
1•benja123•29m ago•0 comments

Version Control Second Coming

https://psantosl.github.io/posts/version-control-second-coming/
2•bananaboy•29m ago•0 comments

"Intelligence curse" means promise of abundance and UBI unlikely to be fulfilled

https://intelligence-curse.ai/defining/
4•thoughtpeddler•34m ago•0 comments

Known registered domain count for every TLD

https://namedesk.app/stats/tlds
1•zeppelin_7•37m ago•0 comments

Australian government to chart course away from 'American war machine'

https://www.theguardian.com/australia-news/2026/sep/08/grassroots-labor-pressure-group-albanese-g...
3•Alien1Being•39m ago•0 comments

Train Jazz

https://www.aico.nyc/amtrak
2•bookofjoe•44m ago•1 comments

Actually Real AI

https://actually-real-ai.com/
2•measurablefunc•45m ago•0 comments

DoodleIQ – Rent your idle local-LLM machine to others by the second

https://www.doodleiq.com/
1•rahulbats•45m ago•0 comments

Speeding up a Phoenix LiveView web app with a CDN

https://jola.dev/posts/speeding-up-phoenix-liveview-cdn
1•auraham•46m ago•0 comments

Michigan Scientist Buried Seeds in Glass Bottles in 1879, 142 Yr Later Some Grew

https://timesofindia.indiatimes.com/science/a-michigan-scientist-buried-seeds-in-20-glass-bottles...
1•rmason•47m ago•0 comments

Cool Web Tool – I got tired of paying for multiple SEO tools

https://coolwebtool.com/
2•umit-ozturk•49m ago•0 comments

The Education of a Doomer

https://borretti.me/article/the-education-of-a-doomer
20•f311a•52m ago•3 comments