Online Casinos - Casinomeister Logo Online Casinos - Casinomeister
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How Do Online Casinos Work?

  1. #11
    MangoJ is offline Newbie member
    Join Date
    Nov 2010
    Location
    Germany
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation Points: 10
    Having a 32 digit (I assume bit) random number (so 1 out of 2^32) is not sufficient for most card games. It will only give you 5(!) random cards from a 52 card deck, as the 6th card is not random anymore: 52!/(51-6)! > 2^32.
    After the 7th card seen you would be able to predict all other cards in the deck.

    You would really want to play Texas Holdem with your system, knowing all hole cards on the river.

  2. #12
    jstrike's Avatar
    jstrike is offline I-Gaming Industry Representative Achievements:
    Created Blog entry1000 Experience Points1 year registeredPeople Likes You
    Join Date
    Nov 2010
    Location
    Europe
    Posts
    292
    Blog Entries
    10
    Thanks
    142
    Thanked 262 Times in 94 Posts
    Rep Power
    14
    Reputation Points: 1378
    Hey Mango. I simplified the example of how my system's shuffling works, for the sake of keeping the explanation clear. In truth, no one is generating decks with 52! possibilities. But you're completely right that a 32 bit seed doesn't give enough possibilities to prevent prediction in a Hold'em game.

    I don't use a single 32-bit seed to shuffle decks. When I said my software takes a 32 digit number from the random pool, I mean it's a 32 digit decimal number. This number is considered truly random as it comes from a remote RNG. We use the first 10 digits of the random number to create a hash which is then bitmasked to create our first unsigned 32-bit seed. The seed is fed to a Mersenne Twister, which is an algorithm that will always produce the same series of numbers given the same seed. MT is considered unpredictable for the period of about the first 623 numbers...meaning that from the first 623 in any given series, you can't guess the key. That doesn't make it random of course. The only random part is which MT sequence we're using, which is determined by our 32-bit seed, which means there are only 2^32 possible sequences.

    So anyway, we use the MT to generate a predictable series of numbers from our random seed. We then use those numbers to do a Fisher-Yates shuffle on the deck. The point of the FY is that it provides an even distribution of possible shuffles from any given starting deck over a 32-bit period. After that, though, the last number we take from that MT sequence is used to cut the deck at a random point. Then we re-seed the MT with the next ten truly random numbers in our 32-number sequence, shuffle and cut again. Then we do it a third time.

    If we started with a single 32-bit seed and shuffled three times, we'd still obviously only end up with 2^32 possible decks. But by doing it this way we have what amounts to a 96-bit seed, which can produce around 27! possible combinations, or a period of 16 known cards that have to be seen before the rest of the deck becomes predictable. While it's true that that's still only a tiny fraction of possible poker decks, it's far too many to be useful to an attacker. What historically has happened is that hackers were able to narrow down the possible sets of decks by cuing into how pseudo-random generators were being seeded, specifically, when one casino was dumb enough to publish its algorithm which turned out to be nothing more than seeding by their system's microsecond value. Once a hacker synchronized with that value, they could predict the seeds and didn't have to brute-force their way through 2^32 decks to figure out what deck they were looking at after 5 cards.

    This is the classic paper on the subject, btw...
    http://www.developer.com/tech/articl...e-Security.htm

    Brute force times have improved a lot since then, but you still can't crack a 96-bit shuffle in real time if the seeds used to generate it are genuinely random.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. rtg casinos this evening not work..
    By bisbis in forum Online Casinos
    Replies: 9
    Last Post: 16th September 2010, 11:16 PM
  2. Replies: 22
    Last Post: 21st October 2008, 07:00 PM
  3. Online gambling deposits are way too much work!
    By LANE13 in forum Other Complaints
    Replies: 20
    Last Post: 16th September 2007, 05:44 AM
  4. How does online blackjack REALLY work?
    By dickens1298 in forum Online Casinos
    Replies: 6
    Last Post: 21st June 2004, 06:24 PM
  5. What online casino did the "collectors" work for?
    By pokeraddict in forum Online Casinos
    Replies: 4
    Last Post: 18th June 2003, 11:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Legal Statements and Privacy Policy
Casinomeister.com does not intend for any of the information contained on this website to be used for illegal purposes. You must ensure you meet all age and other regulatory requirements before entering a casino or placing a wager. Online gambling is illegal in many jurisdictions and users should consult legal counsel regarding the legal status of online gambling and gaming in their jurisdictions. The information in this site is for news and entertainment purposes only. Casinomeister.com is an independent directory and information service free of any gaming operator's control. Links to third party websites on Casinomeister.com are provided solely for informative/educational purposes. If you use these links, you leave this Website.