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?

Peter Naur – Programming as Theory Building (1985) [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
1•s4i•46s ago•0 comments

Chicago undergraduate mathematics bibliography (1999)

https://www.ocf.berkeley.edu/~abhishek/chicmath.htm
1•Tomte•2m ago•0 comments

Firefox vs. Chromium security in 2022, how true is it still today?

https://madaidans-insecurities.github.io/firefox-chromium.html
1•wyoh•3m ago•1 comments

GM to pay $12.75M to settle California driver privacy probe

https://www.reuters.com/sustainability/boards-policy-regulation/gm-pay-1275-million-settle-califo...
1•1vuio0pswjnm7•3m ago•0 comments

Show HN: Free C course called "C Systems Lab"

https://csystemslab.com/
1•vhcosta•6m ago•0 comments

Impact of Trump aid cuts: 9 million deaths by 2030

https://www.nytimes.com/2026/05/09/opinion/foreign-aid-cuts.html
2•marojejian•8m ago•1 comments

GM to Pay $13M to Settle Claims It Sold Californians' Driving Data

https://www.law.com/therecorder/2026/05/08/gm-to-pay-13m-to-settle-claims-it-sold-californians-dr...
1•1vuio0pswjnm7•8m ago•0 comments

Show HN: How-to-Train-Your-GPT

https://github.com/raiyanyahya/how-to-train-your-gpt
1•RaiyanYahya•9m ago•0 comments

sick of dealing with unwanted line breaks when you copy text from claude code?

https://github.com/aaronw122/termcopy/
1•aaronw122•9m ago•0 comments

I Hired Too Fast. I Had to Let Everyone Go. Here's What I Learned

https://comuniq.xyz/post?t=1057
2•01-_-•11m ago•0 comments

Marginal likelihood is exhaustive leave-p-out cross-validation

https://belko.xyz/posts/lml-and-cross-validation/
1•samuel2•12m ago•0 comments

It's time to talk about agentic "remote control"

https://arpadvoros.com/posts/2026/05/08/its-time-to-talk-about-agentic-remote-control/
1•arpadav•12m ago•0 comments

AI wants direct access to your data

https://matthiasplappert.com/blog/2026/ai-wants-direct-data-access/
1•sherlock_h•16m ago•0 comments

Mythos finds the vulnerabilities. VibeAI makes sure YOU understand them

https://hugonomy.com/
1•GlyphWeaver_a•17m ago•0 comments

Show HN: You can edit the game by chatting with it

https://aion.quest/
1•xkoda•17m ago•0 comments

I build software for small businesses rate my site

https://skiigen.com/
1•loui01•17m ago•1 comments

'A Four-Eyed World' Review: The Story of Spectacles

https://www.wsj.com/arts-culture/books/a-four-eyed-world-review-the-story-of-spectacles-504334ac
1•Hooke•17m ago•0 comments

The Chinese Exclusion Act (PBS Documentary)

https://www.pbs.org/wgbh/americanexperience/films/chinese-exclusion-act/
1•mkgobaco•18m ago•1 comments

The unprecedented and deadly cruise ship hantavirus outbreak

https://arstechnica.com/health/2026/05/everything-you-need-to-know-about-the-hantavirus-cruise-sh...
1•Brajeshwar•20m ago•0 comments

Piccolo: An experimental stackless Lua VM implemented in pure Rust

https://github.com/kyren/piccolo
1•tosh•20m ago•0 comments

Query Insights for Postgres, Powered by ClickHouse

https://clickhouse.com/blog/postgres-query-insights-clickhouse-cloud
1•cauchyk•21m ago•0 comments

Let's kill off half the builtins in C3 0.8.0

https://c3-lang.org/blog/lets-kill-off-half-the-builtins-in-080/
1•DASD•21m ago•0 comments

Using Rust for Game Development by Catherine West (2018) [video]

https://www.youtube.com/watch?v=aKLntZcp27M
1•tosh•23m ago•0 comments

Worried Britons 'prepping' for major disruption with stash of tins and cash

https://www.theguardian.com/business/2026/may/09/worried-britons-prepping-for-major-disruption-wi...
3•tomwphillips•25m ago•0 comments

The Memex Method

https://pluralistic.net/2021/05/09/the-memex-method/
1•ingve•26m ago•0 comments

AoS and SoA

https://en.wikipedia.org/wiki/AoS_and_SoA
1•tosh•26m ago•0 comments

VGA Memory Access Is Complicated

https://www.os2museum.com/wp/learn-something-old-every-day-part-xxi-vga-memory-access-is-complica...
2•ingve•30m ago•0 comments

Show HN: Durable async jobs for x402-paid APIs

https://github.com/clearedink/cleared-jobs
1•massanishi•30m ago•0 comments

Ask HN: Notify about DNS records propagation

1•vojtechrichter•31m ago•0 comments

Debunking the Myth That Search Is Dying

https://graphite.io/five-percent/debunking-the-myth-that-seo-traffic-has-dramatically-declined
1•paulpauper•32m ago•2 comments