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?

Read-only developer endpoint scanner for on-disk package, extension

https://github.com/perplexityai/bumblebee
1•taubek•1m ago•0 comments

Scotland Yard can keep using live facial recognition on people in London- judges

https://www.theregister.com/security/2026/04/22/high-court-approves-met-polices-facial-recog-afte...
1•gnabgib•3m ago•0 comments

AI Translate All Formats

1•cadic2603•5m ago•0 comments

Cisco Foundry Security Spec: Open specification for agentic security evaluation

https://github.com/CiscoDevNet/foundry-security-spec
1•cpard•5m ago•0 comments

Why Japan has abandoned houses

https://thehustle.co/newsletters/13-05-2026
1•stephsmithio•8m ago•1 comments

Google vs. Perplexity Chrome Extension

https://github.com/sarons/dual-ai-chat
1•cybermango•8m ago•1 comments

Quantum Dynamics Breakthrough Overturns Claim of 'Quantum Supremacy'

https://www.simonsfoundation.org/2026/05/21/quantum-dynamics-breakthrough-overturns-claim-of-quan...
4•SiempreViernes•15m ago•0 comments

Free admission and discounted overnight stays with Parks Canada

https://parks.canada.ca/voyage-travel/conseils-tips/choisis-canada-choose/admission-camping
2•bookofjoe•18m ago•0 comments

Marimo: A Reactive Python Notebook

https://marimo.io
1•pmaddams•18m ago•0 comments

Why Most Senior Devs Plateau, and What to Do

https://stackandscale.substack.com/p/why-most-senior-developers-plateau
3•lucyb0207•21m ago•0 comments

Onfim

https://en.wikipedia.org/wiki/Onfim
3•Michelangelo11•24m ago•0 comments

You will not be a member of the permanent underclass

https://thingofthings.substack.com/p/you-will-not-be-a-member-of-the-permanent
1•paulpauper•27m ago•1 comments

Why reviewing AI-generated code is devilishly hard

https://www.spinellis.gr/blog/20260523/
2•DSpinellis•32m ago•0 comments

The Forgotten Art of the LAN Party (2023)

https://www.superjumpmagazine.com/the-forgotten-art-of-the-lan-party/
1•susam•35m ago•0 comments

Italian authorities shut down major streaming piracy network

https://www.engadget.com/2180075/italian-authorities-shut-down-major-streaming-piracy-network-cin...
3•01-_-•39m ago•0 comments

ANCI: The Agent Infrastructure for Scheduling

https://meetanci.com
1•rajl•39m ago•0 comments

What's in a Codebase?

https://www.moderndescartes.com/essays/codebase_spec/
2•brilee•39m ago•0 comments

Elon, stop trying to make Grok happen

https://www.theverge.com/ai-artificial-intelligence/936219/elon-stop-trying-to-make-grok-happen
4•01-_-•40m ago•1 comments

Verytis – shared error memory for AI coding agents (MCP)

https://www.verytis.com
1•TychiqueY•40m ago•0 comments

Show HN: A satirical idle game about running an AI startup

https://game.trae.academy/
3•haebom•41m ago•0 comments

Show HN: Running BitNet b1.58 inside DRAM by breaking DDR4 timing rules

1•pcdeni•42m ago•0 comments

A Mysterious Children's Search Engine Is Misleading Kids

https://www.city-journal.org/article/kiddle-search-engine-kids
3•bushwart•43m ago•0 comments

NeuralNote

https://github.com/DamRsn/NeuralNote
1•hyperific•45m ago•0 comments

Kanban board web app powered by the Redmine API

https://ricardoborges.github.io/RedKanban/
1•r2ob•45m ago•0 comments

Diátaxis: A systematic approach to technical documentation authoring

https://diataxis.fr/
2•ZeroCool2u•46m ago•0 comments

The Banal Horror of Jimmy Fallon

https://www.currentaffairs.org/news/the-banal-horror-of-jimmy-fallon
3•ZeroCool2u•48m ago•2 comments

User Story

https://beyondloom.com/blog/userstory.html
1•tosh•49m ago•0 comments

It's time to talk about my writerdeck

https://veronicaexplains.net/my-first-writerdeck/
26•hggh•50m ago•10 comments

SafeDB MCP – safer read-only database access for AI agents

https://github.com/narekmalk/safedb-mcp
2•Narek88•50m ago•0 comments

D. Murray: I see dangers of AI firsthand – as people make doppelgangers of me

https://nypost.com/2026/05/21/opinion/douglas-murray-i-see-dangers-of-ai-firsthand-as-people-make...
1•bushwart•52m ago•0 comments