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?

Spec Driven Development Isn't Waterfall

https://brooker.co.za/blog/2026/04/09/waterfall-vs-spec.html
1•nslog•46s ago•0 comments

Charcuterie – Visual similarity Unicode explorer

https://charcuterie.elastiq.ch/
1•rickcarlino•1m ago•0 comments

AI Changes Everything-and Nothing

https://greyenlightenment.com/2026/04/04/ai-changes-everything-and-nothing/
1•paulpauper•1m ago•0 comments

Dispatch – Open-source event routing for webhooks, APIs, and real-time data

https://dispatch.tech
1•arishaller•1m ago•1 comments

Discovering, detecting, and surgically removing Google's AI watermark

https://github.com/aloshdenny/reverse-SynthID
1•_tk_•3m ago•0 comments

Devoxx [video]

https://www.youtube.com/channel/UCCBVCTuk6uJrN3iFV_3vurg
1•__natty__•3m ago•0 comments

How Iran's Information War Machine Operates Online

https://www.nytimes.com/interactive/2026/04/09/business/iran-war-online-influence-propaganda.html
1•mikhael•3m ago•0 comments

What happens when an LLM becomes load-bearing infrastructure

https://kinarey.com/what-happens-when-ai-becomes-load-bearing/
1•indynz•4m ago•0 comments

Social media has become a freak show

https://www.natesilver.net/p/social-media-has-become-a-freak-show
1•neehao•4m ago•0 comments

Low-Rank KV Attention: 50% Less Memory, Better Models

https://fin.ai/research/low-rank-key-value-attention-reducing-kv-cache-memory-and-maintaining-hea...
1•destraynor•5m ago•0 comments

The Hubble Space Telescope Optical Systems Failure Report (1990) [pdf]

https://ntrs.nasa.gov/api/citations/19910003124/downloads/19910003124.pdf
1•susam•5m ago•0 comments

Darknet Market Mortality Risks

https://gwern.net/dnm-survival
2•blahaj•6m ago•0 comments

Bombshell Report Reveals Trump Was Begging for Iran to Join Ceasefire

https://newrepublic.com/post/208815/trump-asked-iran-ceasefire
1•n1b0m•7m ago•0 comments

TrueNAS 26 Beta Brings Linux 6.18 LTS, OpenZFS 2.4 Combination for NAS Devices

https://www.phoronix.com/news/TrueNAS-26-Beta
1•Bender•7m ago•0 comments

Imfing/hextra:Modern, batteries-included Hugo theme for creating beautiful blogs

https://github.com/imfing/hextra
2•freediver•7m ago•0 comments

Show HN: I built a tool to bootstrap VLESS and REALITY over SSH (with rollback)

1•insany•7m ago•0 comments

Linux 7.0 Adds Support for New Keys on Upcoming Laptops for Expanded AI Agent

https://www.phoronix.com/news/Linux-7.0-New-AI-Agent-Keys
2•Bender•8m ago•0 comments

Exclusive-Tesla is developing a new smaller, cheaper EV, sources say

https://finance.yahoo.com/sectors/technology/articles/exclusive-tesla-developing-smaller-cheaper-...
2•xnx•8m ago•0 comments

Unexplained Phenomena

https://en.wikipedia.org/wiki/Category:Unexplained_phenomena
2•firefax•8m ago•0 comments

Who has to register for Selective Service, and are there exceptions?

https://ktla.com/news/who-has-to-register-for-selective-service-and-are-there-exceptions/
2•Bender•9m ago•1 comments

There's a Good Reason You Can't Concentrate

https://www.nytimes.com/2026/03/27/opinion/technology-mental-fitness-cognitive.html
4•ingve•12m ago•0 comments

A Practitioner's Guide to AI-Assisted Development

https://perevillega.com/posts/2026-03-15-fulcrums-of-ai-developer-evolution/
3•kiyanwang•13m ago•0 comments

Show HN: WarpField, a Visualizer

https://davidcanhelp.github.io/WarpField/
2•DavidCanHelp•14m ago•1 comments

ToolPry – 15 free developer tools, client-side, no tracking

https://toolpry.com/
2•raag3arun•16m ago•1 comments

LinkedIn Pulse Lost 85% of Its Organic Traffic. Here's What Killed It.

https://growtika.com/blog/linkedin-pulse-research
2•Growtika•16m ago•0 comments

DeChambeau using 3D printed 5 iron at Masters

https://www.espn.com/golf/story/_/id/48431238/bryson-dechambeau-using-iron-made-3d-printer-masters
2•anonymousiam•16m ago•0 comments

Seedance 2.0 Is Live on fal

https://fal.ai/seedance-2.0
2•Bennettheyn•16m ago•0 comments

BIP47 and PayNyms

https://paymentcode.io/
2•janandonly•17m ago•0 comments

Show HN: Piecely – Content marketplace using dominant assurance contracts

https://piecely.app/johndebord/iyVsG23NbWv9xv2RJz2Tyv
2•johndebord•18m ago•0 comments

All eyes on Orion's heat shield: Artemis 2

https://www.space.com/space-exploration/artemis/all-eyes-on-orions-heat-shield-artemis-2-astronau...
3•thinkingemote•20m ago•0 comments