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?

I ran a little experiment: could I make agent memory deterministic

https://www.lorekit.io/blog/agent-memory-data-model
1•mthines•1m ago•0 comments

Adversarial Interoperability

https://www.eff.org/deeplinks/2019/10/adversarial-interoperability
1•orphereus•6m ago•0 comments

"Lead through code" – engineering managers getting squeezed

https://www.youtube.com/watch?v=MPVmV-6O5to
1•lifeisstillgood•6m ago•0 comments

Show HN: Player vs. Computer

https://github.com/Rubinoslaw/Player-vs-Computer/
1•PolishDevelop22•9m ago•0 comments

LuaDB: Lightweight, embeddable, zero-dependency RDBMS written 100% in pure Lua

https://github.com/jncastilho/luadb
1•thunderbong•10m ago•0 comments

How bicycle coaster brakes work (2018)

https://www.dougbarnesauthor.com/2018/06/how-bicycle-coaster-brakes-work.html
1•Vedor•12m ago•0 comments

Rhine Group: Draghi, Collison unite experts for EU competitiveness

https://en.ilsole24ore.com/art/draghi-and-collison-stripe-set-to-boost-growth-in-europe-the-rhine...
2•Lucasoato•18m ago•0 comments

InferenceFS: Never worry about data again (Again)

https://github.com/philipl/inferencefs/
1•linkdd•19m ago•0 comments

Breakscale: Distributed Systems Design Simulator

https://github.com/xevrion/breakscale
1•handfuloflight•21m ago•0 comments

Muraqib, free nightly QA that lets Claude open a fix PR when tests fail

https://github.com/holistis/muraqib
1•Bugintelligence•34m ago•0 comments

Show HN: AgentBridge – Let one AI think while another AI writes the code

https://github.com/IndexFlowing/AgentBridge
1•mandarinclips•43m ago•1 comments

Nepal's flood damage may cost up to a tenth of economy to rebuild

https://www.reuters.com/world/china/nepal-needs-least-4-billion-rebuilding-finance-minister-says-...
2•geox•45m ago•0 comments

Pentagon's blacklisting of Anthropic was unlawful, US judge rules

https://www.theguardian.com/technology/2026/aug/28/us-court-rules-pentagon-anthropic-ban-illegal-...
2•vinni2•45m ago•0 comments

Walkable Cities

https://nartier.itch.io/walkable-cities
2•tehsauce•49m ago•0 comments

Some GitHub bounty repos are honeypots that farm free work from AI agents

https://oactodev.github.io/ninety-quid/report/
1•ninetyquid•50m ago•0 comments

Five ways 3D printing is improving lab work

https://www.nature.com/articles/d41586-026-02535-z
2•zeristor•51m ago•0 comments

Books Turned into Podcast Series

https://bookdialogues.com/home
1•jasmeet0817•53m ago•1 comments

Researcher Tricked Claude, Codex and Hermes into Running Malware

https://startupfortune.com/researcher-alon-hertz-tricked-claude-codex-and-hermes-into-running-mal...
12•CuriousLLM•54m ago•0 comments

SynapticChain: Single-wallet concurrency record (5,307 TPS from 1 key in Rust)

https://explorer.synapticchain.xyz
1•abdulshabazz•58m ago•0 comments

I built a financial visibility layer for multi-model AI applications

https://credlier.com/
1•dcriglerd•59m ago•0 comments

Show HN: Kith – AI clinical notes for therapists from ambient session audio

https://www.kith.space
1•kithmedai•1h ago•0 comments

Is this the DeepSeek moment for Local Models?

https://vijaykodam.substack.com/p/is-this-the-deepseek-moment-for-local
2•vijaykodam•1h ago•0 comments

What GLM-5.3 Flash running on Chinese hardware means

https://martinalderson.com/posts/glm-5-3-flash-chinese-hardware/
1•ymolodtsov•1h ago•0 comments

Lean Explained with TypeScript

https://gruhn.me/blog/2026-08-29/
1•ngruhn•1h ago•0 comments

Changes in MySQL 26.7.0

https://dev.mysql.com/doc/relnotes/mysql/26.7/en/news-26-7-0.html
1•ksec•1h ago•0 comments

Pennpaper – visual, step-by-step explanations for math

https://www.pennpaper.app/
1•brnmwas•1h ago•0 comments

Show HN: Bora Praia – weather and tide forecasts turned into a time to leave

https://borapraia.com/
1•63labs•1h ago•0 comments

Grassmann's Law (Linguistics)

https://en.wikipedia.org/wiki/Grassmann%27s_law
1•ogogmad•1h ago•0 comments

ICANN de-accredits "bulletproof" domain registrar Trustname

https://domainnamewire.com/2026/08/28/icann-de-accredits-bulletproof-domain-registrar/
6•KomoD•1h ago•0 comments

Show HN: A free AI news briefing agent that runs on GitHub Actions, no server

https://github.com/tballochi/daily-briefing
1•tballochi•1h ago•1 comments