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?

Ask HN: How do you manage secrets with many agents?

1•tornikeo•1m ago•0 comments

MCP is definitely not dead

https://sderosiaux.substack.com/p/no-mcp-is-definitely-not-dead-the
1•chtefi•6m ago•1 comments

Selective divergence between Grokipedia and Wikipedia article

https://www.pnas.org/doi/10.1073/pnas.2603294123
2•Anon84•7m ago•0 comments

BSD flags are incompatible with iCloud Drive

https://eclecticlight.co/2026/06/02/bsd-flags-are-incompatible-with-icloud-drive/
1•ingve•9m ago•0 comments

JsSIP vs. Sip.js vs. Browser-Phone: Choosing an Open-Source WebRTC Sip Stack

https://www.browser-phone.org/2026/06/02/jssip-vs-sipjs-vs-browser-phone/
1•Dappersiperb•10m ago•1 comments

A reflective AI that refuses to give you answers

https://web-production-07a822.up.railway.app/
1•johnhyder•12m ago•0 comments

Show HN: Rootprint – Self-hosted log search built with Svelte, Hono and Quickwit

https://github.com/rootprint/rootprint
1•badfatcat•13m ago•1 comments

Free browser based QR code generator with custom colors/logo upload

https://takeonanything.com/qr-code-generator/
1•minviex•13m ago•0 comments

Swift Cross Platform

https://www.cocoanetics.com/2026/06/swift-cross-platform/
1•ingve•15m ago•0 comments

The Postmodern Build System

https://jade.fyi/blog/the-postmodern-build-system/
1•birdculture•16m ago•0 comments

LPeg – Parsing Expression Grammars for Lua

https://www.inf.puc-rio.br/~roberto/lpeg/
1•tosh•18m ago•0 comments

Device Bound Session Credentials

https://scotthelme.co.uk/device-bound-session-credentials-making-stolen-cookies-useless/
1•moebrowne•18m ago•0 comments

Fibr.ai is hiring Product Engineers

1•mrafi2•18m ago•0 comments

The commons were never theory – It was always practice

https://hamishcampbell.com/the-commons-were-never-a-theory-it-was-always-practice/
1•BrunoBernardino•18m ago•0 comments

Fredy – Self-hosted real estate scraper for Germany, just hit 1k stars

https://github.com/orangecoding/fredy
1•orangecoding•19m ago•1 comments

A collection of small, low effort tools

https://delphi.tools/
1•ewf•19m ago•0 comments

Chinese Military Sought Nvidia Chips for Years, Report Says

https://www.nytimes.com/2026/06/01/business/economy/china-military-nvidia-chips.html
1•giuliomagnifico•21m ago•0 comments

Under Notre Dame, a 'dig of the century' unearths 1,700 years of history

https://apnews.com/article/notre-dame-dig-treasures-paris-archaeology-roman-dae41f792c1402faf32a8...
1•cobbzilla•21m ago•0 comments

Show HN: I built auto-captions with face-tracking reframe for vertical video

https://captionly.dev
1•captionly•23m ago•0 comments

Challenge and Opportunity – David Bushell

https://dbushell.com/2026/06/01/challenge-and-opportunity/
1•BrunoBernardino•26m ago•0 comments

Pegular Expressions

https://janet.guide/pegular-expressions/
1•tosh•27m ago•0 comments

Poor supervision is pushing young researchers out of academia

https://www.nature.com/articles/d41586-026-01693-4
2•EvgeniyZh•29m ago•1 comments

Why is AI use decried when it appears to have been used without attribution?

2•bookofjoe•29m ago•1 comments

Show HN: Numstore – a single file ACID database for NumPy arrays

https://github.com/lincketheo/Numstore/
1•lincketheo•31m ago•0 comments

Weeping Muses

https://spareatalent.hcommons.org/2026/06/01/weeping-muses-moving-away-from-google/
1•jruohonen•32m ago•0 comments

A 2026 GPU Review for AI Inference. Based on Online Soures

https://old.reddit.com/r/AIProgrammingHardware/comments/1tumela/comprehensive_2026_gpu_review_for...
2•javaeeeee•33m ago•1 comments

The way we treat pigs is a sin

https://www.noahpinion.blog/p/the-way-we-treat-pigs-is-a-sin
20•throw0101a•34m ago•0 comments

Spikes in LLMs Are Bias Vectors: Spike-Free Quantization

https://arxiv.org/abs/2606.02288
2•sbulaev•34m ago•0 comments

Forget Attention: Importance-Aware Attention Is All You Need

https://arxiv.org/abs/2606.02332
2•sbulaev•36m ago•0 comments

Save the balti Can Birmingham's best dish come back from the brink?

https://www.theguardian.com/food/2026/jun/02/balti-birmingham-best-dish-back-from-brink
3•YeGoblynQueenne•38m ago•0 comments