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?

Happy Voluntary Lobotomy Day, Microsoft

https://www.uplevel.pro/p/happy-voluntary-lobotomy-day-microsoft
1•wintermute2dot0•33s ago•0 comments

Show HN: I ported llama.cpp to Apple Watch and ran a 0.8B LLM locally

1•Eric-Terminal•47s ago•0 comments

Contextual Policies in Omnigent: Using session state to better govern AI agents

https://www.databricks.com/blog/contextual-policies-omnigent-using-session-state-better-govern-ai...
1•forks•50s ago•0 comments

Node.js's phantom dependency problem and the path to a 5x faster package manager

https://nubjs.com/blog/unblocking-the-global-virtual-store
1•colinmcd•54s ago•0 comments

Should tests in codebase be tripwires

https://zohaib.me/should-tests-in-codebase-be-tripwires/
1•speckx•1m ago•0 comments

Show HN: Kastor – Terraform-style specs for AI agents

https://github.com/weirdGuy/kastor
1•weirdguy•1m ago•0 comments

Show HN: Soup – organize and route Agent Skills into your LLM prompts

https://github.com/southwind-ai/soup
2•kegenaar•2m ago•0 comments

All New Cars Sold in the EU Now Require a Camera Aimed at Your Face

https://allaboutcookies.org/eu-mandatory-distracted-driver-system#google_vignette
1•bookofjoe•2m ago•0 comments

Property Rights in Capitalism: "Open Source" Software

https://intcp.org/en/texts/41647/property-rights-in-capitalism-open-source-software/
1•mimasama•3m ago•0 comments

LisaFPGA: The Apple Lisa computer implemented inside an FPGA

https://github.com/alexthecat123/LisaFPGA
1•lproven•4m ago•0 comments

Show HN: NoCrap – A Reddit-like community for people quitting porn

https://nocrap.vercel.app/
1•heroboy•4m ago•0 comments

'Who Should I Vote For?' Voters Turn to A.I. Before Casting Their Ballots

https://www.nytimes.com/2026/07/04/us/politics/voters-ai-chatbots-elections.html
1•Vaslo•4m ago•0 comments

Five app stores, one gatekeeper, and a Court that waved it through

https://twitter.com/szilagyipal/status/2074875563571917197
1•miohtama•5m ago•0 comments

WinUAE for macOS and Linux – 6.1.0 beta 9 Latest

https://github.com/reinauer/WinUAE/releases/tag/unix_r3
1•doener•5m ago•0 comments

Drug-addicted Python rehabilitated by Australian prisoners (2017)

https://www.bbc.com/news/world-australia-39550815
2•theanonymousone•5m ago•0 comments

Waymo starts driverless rides in four more U.S. markets as expansion accelerates

https://www.cnbc.com/2026/07/08/waymo-starts-driverless-rides-in-san-diego-las-vegas-tampa-denver...
2•andsoitis•6m ago•0 comments

Chatto is now Open Source

https://www.hmans.dev/blog/chatto-is-open-source
2•speckx•7m ago•0 comments

Show HN: A tool to see if your site is readable by AI agents

https://isyoursitereadyforai.com
1•systemerror•7m ago•0 comments

Challenging the Chatbot: Intelligent applications need new interaction patterns

https://rubriclabs.com/blog/challenging-the-chatbot
2•sarimmalik•9m ago•0 comments

Great New Notepad, Zeropad

https://zeropad.onrender.com/
1•NotepadDev•10m ago•1 comments

Answering "why do you want to relocate?" during interviews

https://relocateme.substack.com/p/a-mistake-to-avoid-during-relocation
3•andrewstetsenko•10m ago•0 comments

Cops Say Waymo Snitched on Teens for Allegedly Drinking and Shooting a Toy Gun

https://www.404media.co/waymo-called-police-on-teens-san-mateo/
1•Brajeshwar•12m ago•0 comments

Show HN: Native TUI Network Throughput Inspection

https://github.com/yeet-src/netwatch
1•zasc•12m ago•0 comments

The most unbelievable things about life before smartphones (2020)

https://mattruby.substack.com/p/the-most-unbelievable-things-about
3•downbad_•13m ago•1 comments

A Woman with the Seven Second Memory [video]

https://www.youtube.com/watch?v=SFKtFRvx9a4
1•opminion•13m ago•0 comments

The Governance Gap

https://twmrg.substack.com/p/the-governance-gap
1•alfino•14m ago•0 comments

An New Git Hosting Network

https://entire.io/blog/an-entirely-new-git-hosting-network
3•aboredev•14m ago•1 comments

One Year Without Pocket

https://byline.cc/articles/pocket-one-year-later/
1•pavelhamrik•14m ago•0 comments

Socialism Always Fails [video]

https://www.youtube.com/watch?v=NNHYr5hSNuE
1•Bender•15m ago•0 comments

Attention is all we have

https://davidbessis.substack.com/p/attention-is-all-we-have
3•afishinmymind•15m ago•0 comments