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?

Ask HN: Who's really winning with AI-Coding?

2•unclebucknasty•3m ago•0 comments

Demolition Van – I've took the most difficult VC mission to extreme

https://demolitionvan.com/
1•marrrcin•4m ago•1 comments

Coding Machines

https://www.teamten.com/lawrence/writings/coding-machines/
1•fedpost•4m ago•0 comments

GTA set in the full map of San Francisco

https://gta.mehranjalali.com
1•MehranJ•6m ago•0 comments

Show HN: Doku, a browser-based Sudoku app I built

https://doku-psi.vercel.app/
1•luvielmo•8m ago•0 comments

Dumping an AES key from a MyQ garage opener to stop rebooting when offline

https://kusha.me/blog/stop_myq_homebridge_819lmb_rebooting/
2•kusha•8m ago•1 comments

Show HN: Listodo – A to-do list with an AI agent for every task

https://github.com/debarshibasak/listodo
1•debarshri•10m ago•0 comments

I'm a full-time NHS doctor. I built my clinic's platform with Claude Code

https://lately.health/
2•shadasinger•13m ago•0 comments

Tesla Cybercab has crashed 8 times, and the data shows a speed problem

https://electrek.co/2026/11/16/tesla-cybercab-crashes-speed-problem/
3•cdrnsf•14m ago•1 comments

Uber Adds Zoox's Robotaxis to Its App. Everything to Know

https://www.cnet.com/roadshow/automobiles/uber-adds-zoox-robotaxis-to-app/
1•sshah03•15m ago•0 comments

Zero-Upload Data Cleaner: Clean Messy CSV, Parquet, and JSON

https://lopespm.com/p/cleaner/
1•lopespm•19m ago•0 comments

Flawless UI-UX Skill 3.0.0

https://github.com/smokeeaasd/flawless-ui-ux
4•nkwwzn•20m ago•0 comments

EWD 1036 – On the cruelty of teaching computing science (1988)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1036.html
1•ky3•20m ago•0 comments

New privacy rules for Google's Gemini Apps (updated November 16, 2026)

https://support.google.com/gemini/answer/13594961?hl=en
1•tedlistens•27m ago•0 comments

Show HN: Sutra-OS – A self-hosted ontology platform

https://github.com/0nelight/sutra-os
7•0nelight•30m ago•0 comments

California sues OpenAI over hacking risks

https://www.npr.org/2026/11/16/nx-s1-6042920/california-sues-openai-hugging-face-hacking-incident
5•CSSer•33m ago•0 comments

The Robotaxi Blame Game: Who Goes to Jail When the Autonomous Car Crashes?

https://2tinteractive.com/watch/episodes/5641/
2•LebToki•33m ago•0 comments

Misalignment signals in Kimi K3: What probes flag and where they peak

https://commandline.microsoft.com/misalignment-signals-in-kimi-k3-what-probes-flag-and-where-they...
1•MarcoDewey•36m ago•0 comments

The FAA's ground stop may have a simple culprit. Its causes may not

https://www.fastcompany.com/91643272/the-faa-was-warned-about-its-telecom-upgrade
2•tedlistens•36m ago•0 comments

Noeri: A neolab to push the frontier of plural intelligence

https://noeri.ai/
1•polymorph1sm•37m ago•0 comments

Performance Boost for Intel CPUs: Impact of FRED Measured

https://www.hwcooling.net/en/performance-boost-for-intel-cpus-impact-of-fred-measured/
1•teleforce•40m ago•0 comments

Making a Staff Sling

https://www.youtube.com/watch?v=zSHD8RG_mSo
2•lifeisstillgood•42m ago•0 comments

Rust: Enabling the parallel front end on nightly

https://blog.rust-lang.org/2026/11/16/enabling-parallel-frontend-on-nightly/
2•matt_d•42m ago•0 comments

What Comes After HBM

https://www.mackenziemorehead.com/what-comes-after-hbm/
1•gmays•43m ago•0 comments

The Name Is the Spec

https://fromautomation.co/p/the-name-is-the-spec
1•ghels1444•43m ago•0 comments

Microsoft Bug Undetected Since July Triggered Worldwide Outage

https://www.bloomberg.com/news/articles/2026-11-16/microsoft-bug-undetected-since-july-triggered-...
4•rndsignals•46m ago•0 comments

Lastbook – Everything you need to survive and rebuild society

https://lastbook.org/
3•bilsbie•47m ago•0 comments

CopySpeech – AI text-to-speech for your clipboard

https://github.com/ilyaizen/CopySpeech
4•ilyaizen•47m ago•0 comments

Ending Forced Arbitration of Children Online Act of 2026 – Proposed Bill

https://www.britt.senate.gov/news/press-releases/u-s-senators-katie-britt-richard-blumenthal-cory...
3•g-b-r•48m ago•1 comments

Safe Systems-Programming with Mutable Value Semantics – Dave Abrahams [video]

https://www.youtube.com/watch?v=op51SyyPJmw
1•stock_toaster•48m ago•0 comments