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

Static sites from shell (part 1/2) – feeling the html.energy (2022)

https://www.evalapply.org/posts/shite-the-static-sites-from-shell-part-1/index.html
1•adityaathalye•2m ago•0 comments

Tesla will stop selling FSD after Feb 14

https://twitter.com/elonmusk/status/2011324998653513810
2•0xedb•3m ago•0 comments

In the DOM We Trust: The Hidden Dangers of Reading the DOM on the Web [pdf]

https://trouge.net/papers/in_the_dom_we_trust_ccs25.pdf
1•ArneVogel•4m ago•0 comments

Multi-Service Debug Sandbox

https://github.com/kp7008/multi-service-debug-sandbox
2•kp7008•9m ago•0 comments

Show HN: Go-CoreML – Go Bindings for Apple's CoreML with Neural Engine Support

https://github.com/gomlx/go-coreml
2•kingcauchy•10m ago•0 comments

HTTP RateLimit Headers

https://dotat.at/@/2026-01-13-http-ratelimit.html
2•ingve•11m ago•0 comments

Why Arab states are silent about Iran's unrest

https://www.economist.com/middle-east-and-africa/2026/01/13/why-arab-states-are-silent-about-iran...
3•ryan_j_naughton•14m ago•0 comments

Documented Alaska Airlines loyalty thefts shows architectural failure

https://www.noseyparker.org/p/alaska-airlines-where-the-top-customers
5•NoseyParker•19m ago•1 comments

Volvo Will Make You Safer with Only a Font

https://www.motortrend.com/news/volvo-safety-typeface-font-easy-read
3•qsi•19m ago•1 comments

You vs. a Billionaire: An Interactive Perspective on Wealth

https://www.budgetflow.cc/blog/you-compared-to-elon-musk
3•mkrd•22m ago•0 comments

We optimized Socket.IO for real-time SaaS analytics

https://saasscout.online/
2•zoey922•22m ago•0 comments

An Architecture for Verifiable Data Collection and Proof-of-Check Timestamping

https://www.researchgate.net/publication/399711443_A_Libre_Architecture_for_Verifiable_Data_Colle...
2•cedricbonhomme•24m ago•0 comments

NASA's SpaceX Crew-11 Go for Undocking on Wednesday

https://www.nasa.gov/blogs/commercialcrew/2026/01/13/nasas-spacex-crew-11-go-for-undocking-on-wed...
2•akg130522•24m ago•0 comments

Agent OS

https://buildermethods.com/agent-os
2•evo_9•25m ago•1 comments

Nvim-beads: Manage beads in Neovim

https://joeblu.com/blog/2026_01_introducing-nvim-beads-manage-beads-in-neovim/
2•joeblubaugh•25m ago•0 comments

Rapid Serial Visual Presentation (RSVP) reader for speed reading

https://github.com/thomaskolmans/rsvp-reading
3•yownie•26m ago•2 comments

Cells use 'Bioelectricity' to coordinate and make group decisions

https://www.quantamagazine.org/cells-use-bioelectricity-to-coordinate-and-make-group-decisions-20...
3•ashishgupta2209•26m ago•0 comments

New set of icons for Apple Creator Studio apps

https://www.reddit.com/r/MacOS/s/NC7iDJu9MS
1•cromka•28m ago•2 comments

The Joy of Not Learning: How AI Saves My Hobby Projects

https://harichetlur.com/blog/the-joy-of-not-learning-how-ai-saves-my-hobby-projects/
3•harichetlur•35m ago•2 comments

China reports largest gold discovery in more than seven decades (2025)

https://www.euronews.com/business/2025/11/14/china-reports-largest-gold-discovery-in-more-than-se...
1•wslh•39m ago•1 comments

Show HN: Cyber+ – A cybersecurity-focused programming language

https://github.com/TanmayCzax/Cyber-Programming-language-Alpha
1•CzaxTanmay•40m ago•0 comments

Photographer 'over the Moon' with iconic ET recreation two years in the making

https://www.bbc.com/news/articles/cp3z475kxwpo
1•1659447091•41m ago•0 comments

New Apple Creator Studio Icons

https://www.reddit.com/r/MacOS/s/aPa5goAtSo
2•virgildotcodes•42m ago•0 comments

Ask HN: How to find gaps and oppurtunities in the AI era?

3•SRMohitkr•47m ago•1 comments

End-to-End Encrypted RCS Messages Referenced in Latest iOS 26.3 Beta

https://twitter.com/TiinoX83/status/2010830920681427199
3•7777777phil•48m ago•0 comments

DHS Deportation Reels Are Getting Copyright Strikes for Unlicensed Music Use

https://reason.com/2026/01/11/the-deportation-playlist-is-mostly-stolen/
12•fortran77•50m ago•0 comments

First impressions of Claude Cowork, Anthropic's general agent

https://simonw.substack.com/p/first-impressions-of-claude-cowork
3•stosssik•52m ago•0 comments

Keir Starmer abandons plans for compulsory digital ID

https://www.thetimes.com/uk/politics/article/digital-id-scrapped-u-turn-keir-starmer-7zcwqqvb5
4•petethomas•52m ago•0 comments

A Journey of Validating a Healthcare Startup

https://jeevan.life/healthcare.html
1•ssunboyy•56m ago•0 comments

HiGP: A high-performance Python package for Gaussian Process

https://arxiv.org/abs/2503.02259
1•7777777phil•56m ago•0 comments