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•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?

Scaling Trust – Can We Create Programmable Trust?

https://cahootzcoops.com/blog/scaling-trust-can-we-coordinate-economics-beyond-a-boss-and-create-...
1•DeonRob•2m ago•0 comments

Illinois budget – new tax on targeted advertising, social media data collection [pdf]

https://www.ilga.gov/documents/legislation/104/SB/PDF/10400SB3019ham001.pdf
1•stockresearcher•4m ago•1 comments

What Kind of Clock Is an LLM?

https://isthisanart.substack.com/p/what-kind-of-clock-is-an-llm
1•HR01•5m ago•0 comments

Ben Affleck: AI company he sold to Netflix for $600M leads to 'more human work'

https://finance.yahoo.com/sectors/technology/articles/ben-affleck-says-ai-company-103500057.html
2•indigodaddy•15m ago•0 comments

San Francisco Popos (Privately Owned Public Open Spaces) Sorted by Distance

https://tools.encona.com/sfpopos
2•rahimnathwani•18m ago•0 comments

Claude Code OS: self-updating operational memory for Claude Code (open source)

https://github.com/bernardohcrocha/claude-code-os/
2•bernardohcr•25m ago•0 comments

RedFlag – self-hosted update management with a supply chain gate

https://github.com/Fimeg/RedFlag
1•Fimeg•27m ago•0 comments

Team Topologies as the Infrastructure for Agency

https://matthewskelton.com/blog/team-topologies-as-the-infrastructure-for-agency
1•wapasta•29m ago•0 comments

Karpathy LLM Wiki pattern integrated into Obsidian agenic workflow

https://github.com/pssah4/vault-operator
3•pssah4•30m ago•0 comments

Science sleuths uncover more than 100 suspicious images Thermo Fisher antibody

https://www.nature.com/articles/d41586-026-01706-2
2•Bender•33m ago•0 comments

Google wants to release up to 32M good mosquitoes California and Florida

https://ktla.com/news/google-wants-to-release-up-to-32-million-good-mosquitoes-in-california-and-...
3•Bender•35m ago•0 comments

William Chester Minor

https://en.wikipedia.org/wiki/William_Chester_Minor
1•petethomas•40m ago•0 comments

Gen Z are 'zebra striping' to avoid hangovers, scientists say it works

https://www.dailymail.com/sciencetech/article-15854983/Gen-Z-zebra-striping-avoid-hangovers-scien...
3•Bender•42m ago•0 comments

The Anarchist's Workbench [pdf]

https://blog.lostartpress.com/wp-content/uploads/2020/07/AWB_Consumer_June-2020_v5.1-1.pdf
2•wesleyd•45m ago•0 comments

Memo from the Interstellar Information Service – Re: Earth's Latest Space "Plan"

https://samhenrycliff.medium.com/memo-from-the-interstellar-information-service-re-earths-latest-...
1•6stringmerc•59m ago•0 comments

OpenJDK: Removal of the JVM Compiler Interface (JVMCI), in JDK 27

https://bugs.openjdk.org/browse/JDK-8382582
2•alasr•1h ago•0 comments

Harvard Graduation Speaker: "The Mission of Your Generation Is to Destroy AI"

https://www.yahoo.com/entertainment/tv/articles/harvard-graduation-speaker-unloads-ai-130000122.h...
4•poly2it•1h ago•3 comments

How Servers Work: A Hands-On Introduction to TCP Sockets

https://labs.iximiuz.com/tutorials/how-servers-work-tcp-sockets
1•birdculture•1h ago•0 comments

New AI Agent Architecture to fix LLM deviations and token costs

https://github.com/botcircuits-ai/botcircuits-agent
1•nexcatara•1h ago•0 comments

Taiwan's DRAM Failure [video]

https://www.youtube.com/watch?v=ehT3U935Pww
1•mgh2•1h ago•0 comments

Clint Eastwood Turns 96 as Son Kyle Says the Legendary Director Has "Retired"

https://www.worldofreel.com/blog/2026/5/31/happy-birthday-clint-eastwood
3•Michelangelo11•1h ago•0 comments

When FP? And when OOP? (2013)

https://raganwald.com/2013/04/08/functional-vs-OOP.html
1•downbad_•1h ago•0 comments

Read These Books by the Time You Graduate

https://www.theatlantic.com/books/2026/05/seven-books-graduate-young-adult-recommendations/687321/
1•paulpauper•1h ago•0 comments

The Kiwi Farms was targeted with a historic DDoS attack of up to 8Tbps last week

https://twitter.com/KiwiFarmsDotNet/status/2061199487855481199
4•gilfish•1h ago•2 comments

Legal Contract Version Control

https://github.com/SCCS-HQ/legal-contract-version-control
2•slveer•1h ago•1 comments

Mnemonic portraits for 19,023 human genes

https://brinedew.substack.com/p/mnemonic-portraits-for-19023-human
1•paulpauper•1h ago•0 comments

Ten EU countries are breaching the fiscal rules

https://www.ft.com/content/38119f3e-4570-4367-a014-9c5bd626cfb6
3•paulpauper•1h ago•0 comments

Europe's "most complex server processor" is running

https://www.heise.de/en/news/Europe-s-most-complex-server-processor-is-running-11308863.html
1•doener•1h ago•0 comments

Chuwi Minibook X: the netbook we deserve

https://tylercipriani.com/blog/2026/05/28/chuwi-minibook-x/
51•thcipriani•1h ago•39 comments

Retro Synthwave on YouTube

https://www.youtube.com/results?search_query=synthwave+before%3A2024-01-01&sp=EgIYAg%253D%253D
1•usernamed7•1h ago•1 comments