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?

Poincaré Conjecture Formalized in Lean4

https://twitter.com/ayushkhaitan343/status/2104289939840176167
1•korbonits•3m ago•0 comments

Show HN: TheSiftNow – a field guide and compatibility checker for The Sift

https://thesiftnow.com/
1•richardharmer•8m ago•0 comments

The Macroeconomic Effect of AI: Sizing the Software Engineering Channel (NBER)

https://www.nber.org/papers/w35793
1•imakwana•10m ago•1 comments

Japan holds first panel meeting on anti-espionage measures

https://mainichi.jp/english/articles/20260929/p2g/00m/0na/004000c
1•snarky-comments•11m ago•0 comments

Hamilton–Perelman's proof of Poincaré conjecture is claimed to be autoformalized

https://github.com/qinz1yang/differential-geometry
1•unexpectedtrap•14m ago•0 comments

Quake 2 on ESP32-P4

https://github.com/alexkid77/ESP32_QUAKE2
2•alexkid777•14m ago•0 comments

With iOS 27, Apple Is Quietly Setting the Stage to Paywall Your iPhone

https://www.pcmag.com/opinions/with-ios-27-apple-is-quietly-setting-the-stage-to-paywall-your-iphone
1•divbzero•16m ago•0 comments

Migrating from MinIO to Predastore

https://mulgadc.com/blog/migrate-minio-to-predastore
5•InsideStick•17m ago•1 comments

Tailmux – connect to multiple tailnets at once

https://github.com/growlyx/tailmux
1•subhamkts•18m ago•0 comments

Why Cheetahs Are Friendly (But Never Domesticated) [video]

https://www.youtube.com/watch?v=nXQD3nPaO-k
1•dataflow•22m ago•0 comments

Cantor's Diagonal Argument

https://en.wikipedia.org/wiki/Cantor%27s_diagonal_argument
1•CGMthrowaway•23m ago•0 comments

VPNs, Copyright Territoriality, and Why Borders Still Matter Online

https://legalblogs.wolterskluwer.com/copyright-blog/vpns-copyright-territoriality-and-why-borders...
1•bryanrasmussen•23m ago•1 comments

El Niño bursts through temperature record months before peak

https://www.theguardian.com/environment/2026/sep/21/super-el-nino-temperature-record
1•ijidak•23m ago•0 comments

Machine will eventually solve face powder, in theory.. (2021)

https://www.reddit.com/r/opus_magnum/s/vNe9IWl3pq
2•112233•28m ago•0 comments

Is this the Future of Gaming? [video]

https://www.youtube.com/watch?v=FyBL8atiZSE
1•sb057•29m ago•0 comments

InputConfig: Free Controller Mapper for Mac

https://inputconfig.com/
1•jonbaer•30m ago•0 comments

TraceOn – best DevTools extension that explains why your page loaded slow

https://chromewebstore.google.com/detail/traceon/nodnccgfalinelngbdkkhkhbeialnljb
2•Solomon_mh•35m ago•0 comments

Google Assistant won't be available soon

https://www.androidpolice.com/google-assistants-death-officially-weeks-away/
2•auaauaaaaua•37m ago•0 comments

AG of Florida files for temporary injunction against OpenAI [pdf]

https://www.myfloridalegal.com/sites/default/files/plaintiffs_motion_for_temporary_injunction.pdf
2•theahura•39m ago•0 comments

Anthropic warns AI may pose 'existential risks to humanity' in IPO filing

https://www.cnbc.com/2026/09/29/anthropic-warns-ai-existential-risks-ipo-filing-reuters.html
2•magoghm•39m ago•0 comments

Show HN: Error in official Swiss weather forecasts, recorded since September '25

https://forecasterror.xlit.app/
1•ghasemi•40m ago•1 comments

Egg producers reach federal and state settlement over price-fixing allegations

https://www.cbsnews.com/news/doj-states-secure-proposed-settlement-with-egg-producers-over-price-...
3•dataflow•42m ago•0 comments

Inside Texas immigration court where children fight to stay in the US

https://www.cnn.com/2026/09/28/politics/texas-immigration-court-minors
2•spankibalt•42m ago•0 comments

The Video Game Industries Dark Night

https://this.os.isfine.org/blog/posts/the-video-game-industries-very-dark-night/
1•akurilin•46m ago•0 comments

AMD Acquires Fei-Fei Li's World Labs for $8.2B

https://www.youtube.com/watch?v=uD62Yn8j_Pg
2•rasengan0•47m ago•0 comments

Show HN: How distributed Claude Code is built on a tunnelling service

https://nfltr.xyz/blog/distributed-claude-code
1•abbiya•50m ago•0 comments

2026 in LLMs (so far)

https://simonwillison.net/2026/Sep/27/2026-in-llms-so-far/
1•matt_d•53m ago•0 comments

Show HN: Gargi Reflex: Autonomous Model Caching for System One Decisions

https://www.gargi.io/
2•gishnumadhu•57m ago•0 comments

When oil prices spike, where does the money go?

https://theconversation.com/when-oil-prices-spike-where-does-the-money-go-280763
5•thelastgallon•1h ago•0 comments

Clipboard Normalizer

https://www.jefftk.com/p/clipboard-normalizer-in-mac-app-store
1•luu•1h ago•0 comments