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?

Maybe the database got it right

https://fhur.me/posts/2026/maybe-the-database-got-it-right
1•fernandohur•1m ago•0 comments

Jerome Powell Responds

https://www.federalreserve.gov/newsevents/speech/powell20260111a.htm
1•0xedb•1m ago•0 comments

The Living Internet

https://www.livinginternet.com
1•hkhn•4m ago•0 comments

Internet History – One Page Summary

https://www.livinginternet.com/i/ii_summary.htm
1•hkhn•4m ago•0 comments

Additively Manufactured Dragonfly-Inspired Wings for Flapping Vehicles

https://www.mdpi.com/2313-7673/10/12/849
1•PaulHoule•5m ago•0 comments

Profession by Isaac Asimov (1957)

https://web.archive.org/web/20201109034130/https://www.abelard.org/asimov.php
1•AndyKelley•6m ago•0 comments

Defense Secretary tours SpaceX missile startup

https://www.latimes.com/business/story/2026-01-10/secretary-of-defense-pete-hegseth-tours-long-be...
1•spacedoors•7m ago•0 comments

Criminal charges against Fed Chairman for defying POTUS wishes

https://www.nytimes.com/2026/01/11/us/politics/jerome-powell-fed-inquiry-trump.html
4•Spooky23•8m ago•1 comments

The U.S. Government Just Followed Through on Its Ban of DJI Drones

https://www.popularmechanics.com/technology/robots/a69937082/us-bans-new-foreign-made-drones/
3•RyanShook•8m ago•0 comments

Tintcd: Directory-aware terminal theming for PowerShell. CD, but colorful

https://github.com/ymyke/tintcd
1•thunderbong•12m ago•1 comments

The Good Club

https://www.thegoodclub.com
1•sans_souse•12m ago•0 comments

Show HN: 2k or Nothing – A Social Platform Dedicated to Long-Form Content

https://2k-or-nothing.com/feed
1•Lbesecker195•14m ago•0 comments

Jon Skeet Facts

https://meta.stackexchange.com/questions/9134/jon-skeet-facts
1•ravenical•16m ago•1 comments

OAuth 2.1 Dynamic Client Registration for AWS BedrockAgentCore Gateway

https://github.com/orgs/stache-ai/discussions/5
1•Jtpenny•16m ago•0 comments

Serverless RAG and MCP on AWS with S3Vectors and Agentcore

https://github.com/orgs/stache-ai/discussions/4
1•Jtpenny•17m ago•0 comments

Reverse-engineering another Ursa Major classic: the StarGate 323

https://www.temeculadsp.com/journal/understanding-timing-circuits
1•johnwheeler•19m ago•0 comments

Show HN: AeroTag – Tag-based workspace management for AeroSpace (macOS)

https://typester.dev/blog/2026/01/11/tag-based-workspace-management-with-aerospace
1•typester•21m ago•1 comments

Hubble Telescope's Final Countdown: Could It Disappear Sooner Than Expected?

https://dailygalaxy.com/2026/01/hubble-countdown-could-it-disappear-sooner/
2•TMWNN•26m ago•0 comments

Token-Count-Based Batching: Faster, Cheaper Embedding Inference for Queries

https://www.mongodb.com/company/blog/engineering/token-count-based-batching-faster-cheaper-embedd...
1•fzliu•28m ago•0 comments

Tuning Random Generators: Property-Based Testing as Probabilistic Programming [pdf]

https://web.cs.ucla.edu/~todd/research/oopsla25a.pdf
2•todsacerdoti•30m ago•0 comments

Show HN: Built a course on buying small businesses – validating demand

https://smalldealschool.com/
1•boring_million•32m ago•1 comments

A $400k payout is putting prediction markets in the spotlight

https://apnews.com/article/prediction-markets-maduro-trades-1f47e737f915fff00c57f03e7390b41f
4•petethomas•36m ago•0 comments

Matchbox Educable Noughts and Crosses Engine

https://en.wikipedia.org/wiki/Matchbox_Educable_Noughts_and_Crosses_Engine
1•icwtyjj•38m ago•0 comments

Big Tech's Ugly Duckling: Can Snap Finally Execute?

https://ossa-ma.github.io/blog/snapchat?
1•ossa-ma•40m ago•2 comments

Live Captions

https://avc.xyz/live-captions
1•wslh•43m ago•0 comments

You don't need a skill registry (for your CLI tools)

https://solmaz.io/skillflag
2•hosolmaz•48m ago•0 comments

The US Empire is going supernova

https://simplicius76.substack.com/p/the-us-empire-is-going-supernova
1•SanjayMehta•50m ago•0 comments

Ogre 14.5 Released

https://www.ogre3d.org/2026/01/10/ogre-14-5-released
1•klaussilveira•52m ago•0 comments

Show HN: Instagram Saved Collection Downloader

https://chromewebstore.google.com/detail/instagram-saved-collectio/dibmfjgbnhbfhlajpahnbiiabpdabajo
1•qwikhost•56m ago•0 comments

Revolutionary eye injection saved my sight, says first ever patient

https://www.bbc.co.uk/news/articles/c89qyv98lzdo
2•1a527dd5•59m ago•0 comments