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•11mo 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•11mo 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?

Show HN: Webcellar – JavaScript (and TypeScript) in Excel Made Simple

https://github.com/Acmeon/Webcellar
1•Acmeon•1m ago•0 comments

AI for Small and Medium Businesses. Tadviser Conference Report

1•anong1•1m ago•1 comments

A visual guide to Gemma4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
1•saikatsg•1m ago•0 comments

Support Betterbird

https://www.betterbird.eu/end-of-year/
1•ekianjo•8m ago•0 comments

Gomoku (5 in a Row) in Zig (Minimax with Alpha-Beta Pruning) Zig/WASM

https://github.com/begoon/gomoku-zig/
1•begoon•9m ago•0 comments

Giving LLMs a Formal Reasoning Engine for Code Analysis

https://yogthos.net/posts/2026-04-08-neurosymbolic-mcp.html
3•boriskourt•11m ago•1 comments

When Representation Replaces Reality in Modern Systems

https://dx.doi.org/10.2139/ssrn.6150706
1•realitydrift•13m ago•0 comments

Sokoban Solver in Zig

https://github.com/begoon/zig-sokoban-solver/
1•begoon•13m ago•0 comments

The Intl API: The best browser API you're not using

https://polypane.app/blog/the-intl-api-the-best-browser-api-youre-not-using/
2•Terretta•18m ago•0 comments

This "rotten egg" brain gas could be the key to fighting Alzheimer's disease

https://www.sciencedaily.com/releases/2026/04/260408225933.htm
1•Noaidi•19m ago•1 comments

The State of Startups 2026

https://supabase.com/state-of-startups
1•fmerian•21m ago•0 comments

A Three- and a Four- Body Problem

https://www.johndcook.com/blog/2026/04/08/artemis-1-apollo-12/
1•ibobev•22m ago•0 comments

Andrica's conjecture on the gap between root primes

https://www.johndcook.com/blog/2026/04/08/andrica/
2•ibobev•22m ago•0 comments

An Atari 8-bit Computer Timeline

https://www.goto10retro.com/p/an-atari-8-bit-computer-timeline
1•ibobev•23m ago•0 comments

Show HN: Gaussian splatting for real estate promotion

https://lamotte-laturballe.see-around.app/
2•dezmou•27m ago•1 comments

Britain breaks solar energy record twice as UKs biggest solar farm gets approval

https://www.theguardian.com/environment/2026/apr/08/britain-breaks-solar-energy-record-twice-uk-b...
4•_____k•28m ago•1 comments

The Soviet Network

https://literaryreview.co.uk/the-soviet-network
1•prismatic•28m ago•0 comments

Hister: Automatic local full-text indexing for visited websites

https://github.com/asciimoo/hister
1•rendx•30m ago•0 comments

Show HN: CSS Studio. Design by hand, code by agent

https://cssstudio.ai
2•SirHound•32m ago•0 comments

Why Have Sentence Lengths Decreased?

https://arjunpanickssery.substack.com/p/why-have-sentence-lengths-decreased
2•surprisetalk•32m ago•0 comments

Ms. Rachel

https://gomakethings.com/ms.-rachel/
2•surprisetalk•32m ago•0 comments

Kiki: Array Programming DSL

https://smallandnearlysilent.com/kiki/
1•surprisetalk•32m ago•0 comments

Exploring the Design Space for Runtime Enforcement of Dynamic Capabilities [video]

https://www.youtube.com/watch?v=Yug1iSqY2Y8
2•surprisetalk•33m ago•0 comments

Workflows: Durable Execution with Just Postgres

https://earendil-works.github.io/absurd/
2•birdculture•36m ago•0 comments

SuperCmd – open-source alternative to Raycast Pro, WisprFlow, and Speechify

https://supercmd.sh/
3•marksully•36m ago•0 comments

WireGuard VPN developer can't ship updates after Microsoft locks account

https://techcrunch.com/2026/04/08/wireguard-vpn-developer-cant-ship-software-updates-after-micros...
5•Liriel•36m ago•2 comments

Apple's chip 'binning' explained: What the heck does it mean?

https://www.macworld.com/article/3107278/apples-chip-binning-explained-what-is-it-and-why-does-it...
1•SonOfKyuss•38m ago•0 comments

Citeseerx.ist.psu.edu Archived, Breaking Tens of Thousands of Links

https://web.archive.org/web/20251230112235/https://citeseerx.ist.psu.edu/
2•maxaigner•40m ago•2 comments

Ask HN: What you use for quick API checks?

1•igtumt•41m ago•1 comments

Grading laptop and cell phone companies on the fixability of their products

https://pirg.org/edfund/resources/failing-the-fix-2026/
1•giuliomagnifico•42m ago•0 comments