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?

Markov 1913 and the Missing Piece

https://deepnull.bearblog.dev/markov-1913-and-the-missing-piece/
1•hackboyfly•4m ago•0 comments

Agent Reach: An open-source CLI that gives AI agents access to the internet

https://github.com/Panniantong/Agent-Reach
1•Nina_antalpha•6m ago•0 comments

Wilhelm Voigt

https://en.wikipedia.org/wiki/Wilhelm_Voigt
1•thunderbong•9m ago•0 comments

Show HN: Certo – An open source platform to deliver Open Badges

https://github.com/schroedinger-Hat/certo
1•thejoin95•9m ago•0 comments

Meta's Ray-Bans are getting banned from UK pubs, and the EU is circling

https://thenextweb.com/news/meta-ray-ban-smart-glasses-eu-uk-venue-bans-privacy
1•aquir•10m ago•0 comments

Show HN: posix-regex – POSIX standard regex engine for JavaScript

https://github.com/dawsonhuang0/posix-regex
1•dawson0•12m ago•0 comments

Show HN: Free online calculators – no signup, no fees

https://calcboxer.com/
1•wowinter15•12m ago•0 comments

Generative "AI": The Guitar Hero of Creativity

https://whatever.scalzi.com/2026/08/06/generative-ai-the-guitar-hero-of-creativity/
1•cheeaun•12m ago•0 comments

The Senate Commerce Committee will vote on censorious and privacy invasive bills

https://www.eff.org/deeplinks/2026/08/senate-vote-tomorrow-four-internet-bills-one-wrong-direction
1•Cider9986•14m ago•0 comments

Cuprate – Alternative Monero node software written in Rust syncs 2x faster

https://reddit.com/r/Monero/comments/1vg6ga5/cuprate_kesterite_vs_monerod_same_hardware_single/
1•Cider9986•20m ago•1 comments

Terafab

https://en.wikipedia.org/wiki/Terafab
1•tosh•23m ago•0 comments

Terminal apps that can make your life easier

https://panos.digital/writing/terminal-apps-that-can-make-your-life-easier
1•panosdigital•26m ago•0 comments

Show HN: AgisHub – pay-per-call tools for AI agents over x402 (USDC on Base)

https://api.agishub.com/try
2•jmavid•29m ago•0 comments

Show HN: Life Of AI – I hallucinate. Therefore I am

https://lifeofai.net/
1•Naulian•29m ago•0 comments

Recovered PR: AISI Mythos incident INC-2026-07-28-01

https://github.com/w1b/aisi-mythos-inc-2026-07-28-01-recovered-pr
1•haburka•32m ago•0 comments

Nobody Fetched My Llms.txt

https://marcioflorindo.com/nobody-fetched-my-llms-txt.html
1•mjpf•35m ago•0 comments

I learned something new about URLs today

https://blog.brlink.eu/index.html#i72
1•edward•36m ago•0 comments

Ask HN: Reading and watching suggestions for future scenarios for AI?

2•cung•38m ago•2 comments

US to vet social media of foreign journalists applying for visas, report says

https://www.reuters.com/legal/government/us-vet-social-media-foreign-journalists-applying-visas-r...
3•thm•38m ago•0 comments

FreeCAD MCP (Model Context Protocol) Server

https://github.com/neka-nat/freecad-mcp/
1•edward•39m ago•0 comments

Show HN: Picks a fair meeting point for your group, whatever their commute types

https://meettogather.com/
1•bouli-love•39m ago•0 comments

Show HN: Llmem – Local persistent memory for AI coding, no embeddings

https://github.com/netrixone/llmem
1•stuchl4n3k•40m ago•0 comments

Ralph Merkle: Energy Limits to the Computational Power of the Human Brain (1989)

https://ralphmerkle.com/brainLimits.html
1•Mr_Minderbinder•41m ago•0 comments

European firms afraid of US tech kill switch but haven't made an escape plan

https://www.theregister.com/off-prem/2026/08/06/european-firms-afraid-of-us-tech-kill-switch-but-...
2•baud147258•42m ago•0 comments

Claude Fable 5 AI finds a formula that topples an 87-year-old math conjecture

https://www.sciencedaily.com/releases/2026/08/260804034634.htm
1•thaherster•44m ago•0 comments

Reconsidering My Relationship with the Fediverse

https://mijndertstuij.nl/posts/reconsidering-my-relationship-with-the-fediverse/
3•wseqyrku•44m ago•1 comments

Persistent Memory and Derived Context: A Two-Layer Pattern for Agents

https://blogs.oracle.com/developers/persistent-memory-and-derived-context-a-two-layer-pattern-for...
1•ankitg12•45m ago•0 comments

MCP in the Enterprise

https://medium.com/@parthmghayal/mcp-in-the-enterprise-0d40b64a866b
1•parthmghayal•46m ago•0 comments

"Build In Public" but how do you do it without making it a full-time job?

1•Amrani•47m ago•1 comments

You 're right to push back

https://anedelkos.eu/posts/agentic-disobedience/
2•andned•52m ago•0 comments