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?

The Importance of Diversity

https://geohot.github.io//blog/jekyll/update/2026/01/27/the-importance-of-diversity.html
1•mefengl•12s ago•0 comments

Places to Telnet

https://telnet.org/htm/places.htm
1•tokyobreakfast•34s ago•0 comments

Hallucination Stations: On Some Basic Limitations of Transformer-Based Language

https://arxiv.org/abs/2507.07505
1•todsacerdoti•40s ago•0 comments

Hacker News front page now, but the titles are honest. #2

https://dosaygo-studio.github.io/hn-front-page-2035/news-honest-2025-01-27.html
1•keepamovin•4m ago•2 comments

Intrinsic Loneliness

https://juun.vercel.app/en/blog/13
1•juun_roh•5m ago•0 comments

GPUs Became the Newest Financial Asset

https://davefriedman.substack.com/p/how-gpus-became-the-newest-financial
1•walterbell•8m ago•0 comments

Hacker News: Savage Mode

https://dosaygo-studio.github.io/hn-front-page-2035/news-honest-2025-01-27-2.html
3•keepamovin•10m ago•1 comments

Show HN: Infinijest, Video Feed Experiment

https://infinijest.com
2•throwawaste•19m ago•0 comments

Borges' Library of Babel Online

https://libraryofbabel.info/
2•lorenzohess•20m ago•1 comments

Scott Galloway Explains How You Can Stop Government Overreach

https://www.openculture.com/2026/01/scott-galloway-shows-how-you-can-stop-government-overreach-wi...
2•nomagicbullet•20m ago•0 comments

AI Subscription vs. H100 [video]

https://www.youtube.com/watch?v=SmYNK0kqaDI
3•owenpalmer•23m ago•0 comments

How to Donate to the Debian Project

https://www.debian.org/donations
2•move-on-by•25m ago•0 comments

Using an LLM Gateway to Keep My Agent Config Stable

https://medium.com/@pala_28493/how-to-power-clawdbot-with-advanced-llms-using-vivgrid-step-by-ste...
1•kubesphere2025•26m ago•0 comments

What I Learned Making 34 Novels with Claude Sonnet

https://triptych.writeas.com/what-i-learned-making-34-novels-with-claude-sonnet
1•triptych•28m ago•0 comments

Show HN: Seedance 2.0 Pro AI Video Generator

https://www.seedance2pro.net
1•Zach_HE•29m ago•0 comments

Prolog-blog-engine: blog engine in pure Prolog. 0 dependencies, Markdown, server

https://github.com/cryptoque/prolog-blog-engine
1•todsacerdoti•30m ago•0 comments

Period three implies Chaos (1975) [pdf]

https://www.its.caltech.edu/~matilde/LiYorke.pdf
1•nill0•31m ago•0 comments

37signals Isn't Smarter Than You, but They Are Different

https://www.nateberkopec.com/blog/37signals-is-not-smarter-than-you/
2•mefengl•31m ago•0 comments

Easy_Claude_code

https://github.com/study8677/easy_claude_code
1•study8677•35m ago•1 comments

How Photos Are Cabled Across Atlantic (1926 Illustration)

https://commons.wikimedia.org/wiki/File:Science_and_Invention_April_1926_-_How_Photos_Are_Cabled_...
3•retrac•39m ago•2 comments

I slopcoded an open source version of Xilly's GameMode after the X fiasco today

https://github.com/bensheed/OpenGameBoost
1•bensheed•44m ago•3 comments

Claude Code suggests .claudeignore to protect .env, reads it anyway

https://pastebin.com/dkbMUva7
3•rodavok01•47m ago•0 comments

Tinykit: Self-hosted Lovable/v0 alternative. With Realtime database and storage

https://github.com/tinykit-studio/tinykit
2•thunderbong•49m ago•0 comments

The Great California Wealth Exodus

https://www.thefp.com/p/the-great-california-wealth-exodus
4•fortran77•50m ago•1 comments

Microsoft Needs a Windows Social Contract

https://www.windowscentral.com/microsoft/windows-11/from-the-editors-desk-microsofts-biggest-wind...
2•chwtutha•52m ago•0 comments

Show HN: Compile Python libraries for TypeScript with type completion (umo)

https://github.com/AlaShiban/umo
1•ashiban•53m ago•0 comments

Heathrow Drops the Liquids Rule

https://flymag.com/heathrow-drops-the-liquids-rule-what-changes-at-lhr-and-how-close-the-u-s-real...
2•lxm•54m ago•0 comments

AI Content Disclosure for HTML

https://github.com/WICG/proposals/issues/261
1•nnx•1h ago•0 comments

Sepp Blatter suggests fans should not travel to US for World Cup

https://www.theguardian.com/football/2026/jan/26/sepp-blatter-suggests-fans-should-not-travel-to-...
6•KnuthIsGod•1h ago•1 comments

iOS 26.3 Adds Privacy Setting to Limit Carrier Location Tracking

https://www.macrumors.com/2026/01/26/ios-26-3-limit-precise-location/
3•dmmalam•1h ago•0 comments