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?

Kimi K3 vs. Meta: Muse Spark 1.1

https://runtimewire.com/article/head-to-head-kimi-k3-vs-meta-muse-spark-1-1
1•ryanmerket•1m ago•0 comments

Japan now has human refrigerators inspired by Japanese vending machines

https://soranews24.com/2026/07/18/japan-now-has-human-refrigerators-aims-to-help-save-lives-in-su...
1•rawgabbit•6m ago•0 comments

The Server Is a Sync Relay Now: Architecting Around Client-Owned State

https://tiarebalbi.com/en/blog/local-first-server-sync-relay-architecture
1•yruzin•15m ago•0 comments

Show HN: NS6 – Find your perfect domain

https://www.ns6.com/
1•nadermx•17m ago•2 comments

ASCII Art

https://github.com/doctorfree/Asciiville
1•audreyfei•20m ago•0 comments

Regressive JPEGs

https://maurycyz.com/projects/bad_jpeg/
2•vitaut•22m ago•0 comments

Erik J. Larson, The Myth of Artificial Intelligence (2021) [pdf]

https://dn721508.ca.archive.org/0/items/the-myth-of-artificial-intelligence/TheMythofArtificialIn...
1•1vuio0pswjnm7•28m ago•4 comments

Apitegromab for lean mass preservation during tirzepatide-induced weight loss

https://www.nature.com/articles/s41591-026-04440-4
1•nateb2022•32m ago•0 comments

Reading Between Dots: Decoding Hidden Computation Across Filler Tokens (ICML'26)

https://arxiv.org/abs/2607.03502
1•vismit2000•47m ago•0 comments

Tokyo Technarch Izakaya Night: Jensen like postwar industry captain

https://www.youtube.com/watch?v=X7ffSOzcYBc
2•oliculipolicula•52m ago•0 comments

Angie – Drop-In Replacement for Nginx

https://github.com/webserver-llc/angie
1•lwhsiao•52m ago•1 comments

TypePiao-Practice sheet music reading like typing, with instant feedback

https://typepiano.org
2•WenboS•54m ago•0 comments

Extra hidden computations in LLM using dot tokens for multi-hop reasoning

https://xcancel.com/kaleybrauer/status/2078185882926846044
1•vismit2000•55m ago•0 comments

Arduino Launches Plug-and-Play Modules for Long-Range Sensor Projects

https://www.allaboutcircuits.com/news/arduino-launches-plug-and-play-modules-for-long-range-senso...
1•WaitWaitWha•59m ago•0 comments

"Free Range" Offline and On

https://petergray.substack.com/p/121-free-range-offline-and-on
1•Ariarule•1h ago•0 comments

Ask HN: Are We Getting Dumber?

2•lyfeninja•1h ago•1 comments

Some surveillance I noticed today

https://nonogra.ph/some-surveillance-i-noticed-today-07-18-2026
1•arkhiver•1h ago•0 comments

A Test Isn't Racist. Assumptions About Black Kids Can Be

https://www.nytimes.com/2026/07/16/opinion/new-york-high-school-test-racism.html
2•apparent•1h ago•1 comments

StartupForge AI – Turn Any Business Idea into a Startup Blueprint

https://b07ada739af0b4a7c99daf84e96b066a.ctonew.app/
1•kvreal•1h ago•0 comments

Cataloging Growth: A Re-Evaluation of 1900–1990 [pdf]

https://veronicabp.github.io/website/VBP_BHW_CostOfLiving.pdf
1•alphabetatango•1h ago•0 comments

Ultraclose 2029 flyby of asteroid Apophis

https://www.livescience.com/space/asteroids/shared-cosmic-experience-potentially-hazardous-astero...
2•jinjin2•1h ago•0 comments

Show HN: Spiral – continuous-thrust orbit-transfer design in the browser

https://spiral.erikevenson.net
1•eevenson•1h ago•0 comments

How Websites Detect Ban Evasion-why creating new accounts isn't enough to escape

https://medium.com/@thesuperrepemail/how-websites-detect-ban-evasion-and-why-creating-a-new-accou...
2•mssblogs•1h ago•0 comments

Beginning July 20, Claude Fable 5 will be included in all Max plans

https://twitter.com/claudeai/status/2078302415804379218
8•mfiguiere•1h ago•4 comments

Amp Subscriptions, at Last

https://ampcode.com/news/subscriptions
1•shmuppet•1h ago•0 comments

In the birthplace of the car, EVs are now king: BEVs outsell gas cars in Germany

https://electrek.co/2026/07/17/in-the-birthplace-of-the-automobile-electric-cars-are-now-king/
2•breve•1h ago•0 comments

Grok Imagine regenerated Xkcd comics

https://www.xkcd-ai.com/
3•levelforge•1h ago•1 comments

Nvidia CEO Jensen Huang's jacket has sold at Sotheby's for $960k

https://twitter.com/darrenrovell/status/2078207366625964058
6•donsupreme•1h ago•2 comments

Xkcd comics re-imagined with Grok IMAGINE

https://www.xkcd-ai.com/21507
2•levelforge•1h ago•2 comments

There's no standard status page, and other lessons from tracking 96 providers

https://dev.to/kerolos_atallah/theres-no-standard-status-page-and-other-lessons-from-tracking-96-...
1•koko3tallah•1h ago•0 comments