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?

Claude Code vs. Codex

1•bicepjai•18s ago•0 comments

F-15E pilot downed over Iran had been shot down a month prior

https://thehighside.substack.com/p/pilot-of-f-15e-downed-over-iran-had
1•iancmceachern•20s ago•0 comments

A new sensor could enable earlier detection of bladder cancer

https://news.mit.edu/2026/new-sensor-could-enable-earlier-detection-bladder-cancer-0528
1•gmays•1m ago•0 comments

What we learned mapping a year's worth of AI-enabled cyber threats

https://www.anthropic.com/news/AI-enabled-cyber-threats-mitre-attack
1•pretext•2m ago•0 comments

You Don't Need an Outbox

https://docs.eventsourcingdb.io/blog/2026/06/04/you-dont-need-an-outbox/
1•goloroden•2m ago•0 comments

Claude please rack me a datacenter, make no mistakes

https://blog.railway.com/p/datacenter-no-mistakes
1•ndneighbor•3m ago•0 comments

The Lipogram in the Digital Age

https://medium.com/@gui__/from-pindar-to-pixels-the-lipogram-in-the-digital-age-e897c52eb1dd
1•gillesr•3m ago•0 comments

I got tired of Dependabot alerts breaking my tests

https://zorv.openyf.dev
1•youelfedr•7m ago•0 comments

"Optimal Cognitive Core"- specialized 1.7B model for grounded question answering

https://huggingface.co/occ-ai/OCC-RAG-1.7B
1•dryarzeg•7m ago•0 comments

Typical PCs Each Year

https://www.dosdays.co.uk/topics/typical_pc_per_year.php
1•1970-01-01•10m ago•0 comments

Wander, a StumbleUpon-inspired tool for discovering the 'small web'

https://techcrunch.com/2026/06/03/meet-wander-a-stumbleupon-inspired-tool-for-discovering-the-sma...
2•speckx•11m ago•0 comments

Openfire Java XMPP/Jabber 5.1.0 Released with Channel Binding for More Security

https://discourse.igniterealtime.org/t/openfire-5-1-0-release/96495
1•neustradamus•12m ago•0 comments

Zcash Executes Emergency Fork After Critical Orchard Vulnerability Discovery

https://www.cryptotimes.io/2026/06/02/zcash-executes-emergency-fork-after-critical-orchard-vulner...
2•Cider9986•14m ago•0 comments

Mounting evidence suggests remote work is behind the Gen Z hiring nightmare

https://www.msn.com/en-us/money/smallbusiness/mounting-evidence-suggests-remote-work-is-behind-th...
1•galaxyLogic•14m ago•2 comments

If you love Brainfuck, you are going to love this game

https://bf.amirhn.workers.dev/
1•keyvank•14m ago•0 comments

Elixir v1.20 released: now a gradually typed language

https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/
22•cloud8421•16m ago•1 comments

Project Is Dead. Completely

https://hide.cash/roadmap
1•Cider9986•16m ago•0 comments

Alexis at Espresso AI

1•cachecoffee•17m ago•0 comments

Giga-IPOs are a symptom of public markets' giga-problem

https://economist.com/finance-and-economics/2026/05/26/giga-ipos-are-a-symptom-of-public-markets-...
3•andsoitis•17m ago•0 comments

Using Dropbox the Unix Way

https://thelig.ht/dropbox-the-unix-way/
1•varenc•18m ago•2 comments

JsonLogic: Build complex rules and share them as JSON

https://jsonlogic.com/
2•thunderbong•19m ago•0 comments

How much AI should my team use? A framework for managers

https://assistedeverything.substack.com/p/ai-bowtie
1•gimili•19m ago•0 comments

Realistic Evals, or You're Blind

https://zozo123.github.io/demo-evals-pydantic-islo-crabbox/
1•zozo123-IL•20m ago•0 comments

Hydra – software KVM with network aware profiles, cross platform/layout input

https://github.com/PacAnimal/hydra
3•PacAnimal•20m ago•1 comments

Rootshell: A new E2EE email service hosted in Iceland

https://rootshell.is
3•sc0rt•20m ago•1 comments

AI Is Computation

https://www.gabrielpickard.com/posts/ai-is-computation/
2•snoren•23m ago•0 comments

The Most Expensive Mistake in the History of Computing

https://www.cringely.com/2026/06/03/the-most-expensive-mistake-in-the-history-of-computing/
3•dxs•23m ago•0 comments

Luddite Lab Resource Hub Launch Webinar

https://peertube.dair-institute.org/w/4evWrVsa7igh622WT8E5X2
2•cratermoon•24m ago•0 comments

Coursera now offers an AI-powered feed of short form educational content

https://www.fastcompany.com/91552461/coursera-now-offers-an-ai-powered-feed-of-short-form-educati...
3•darkgreene•24m ago•0 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/on-prem/2026/04/16/quic-will-soon-be-as-important-as-tcp/5227423
2•mahirsaid•25m ago•0 comments