logoalt Hacker News

hyperpape • today at 10:32 PM • 1 reply • view on HN

2 is theoretically possible. Practically speaking, I believe it means simulating the behavior of all 2^64 seeds and testing them against what's actually happened, so it's not practical, but it's an obstacle to mathematical definitions of perfect play.

This is unlike correlated randomness, which as you've noted is a real problem that many players have used mods to correct.


Replies

shoo • today at 11:13 PM

> I believe it means simulating the behavior of all 2^64 seeds and testing them against what's actually happened, so it's not practical

Aside from Spire, i'm aware of one example where folks developed a working attack against an early Texas Hold'em online poker implementation that let them uniquely identify the rng state & cheat reliably once they had observed only 5 cards (the 2 cards dealt to them & the 3 from flop)

the ingredients for that attack to work were:

  - the online poker company released their source code in order to build trust
  - the online poker implementation used a 32 bit rng seed
  - rng initialisation was done using Pascal's Randomize() function, which seeds using the number of milliseconds since midnight - a much smaller range of values than 2^32
  - synchronising their client computer's clock with the online poker server's clock further reduced the search space for possible rng seeds, so they only needed to brute force a few hundred thousand candidate seeds
The paper about the exploit was published back in 1999, there's a copy on gwern's site: https://gwern.net/doc/cs/cryptography/2006-arkin.pdf

I guess what makes this work is the number of possible configurations of 5 cards -- 52 * 51 * 50 * 49 * 48 -- this number is about 3.6x larger than the number of milliseconds per day. It's possible that some distinct rng seeds could produce the same ordered sequence of 5 visible cards, but that observation of the first 5 cards is going to be highly informative for the majority of games.