Blog · Fairness & Anti-Cheating

Web Crypto Randomness in Browser Poker: What It Proves and What It Does Not

Fairness & Verification Published October 1, 2026 · Fair Poker Research Team

Browser poker raises a fair question: if the game runs in a web page, where does serious randomness come from? The short answer is that modern browsers expose the Web Crypto API, and its crypto.getRandomValues() method is designed for cryptographically strong random values.

That is useful, but it is not the whole fairness story. A secure poker shuffle needs hard-to-predict input before the hand, a clear way to turn that input into a deck, and evidence that players can check after the hand.

What Web Crypto actually gives a poker app

The browser Crypto interface gives web pages access to basic cryptographic tools, including a strong random number generator. MDN documents crypto.getRandomValues() as the normal browser method for filling typed arrays with cryptographically strong random values: MDN getRandomValues.

For poker, that matters because casual randomness is not enough. A function made for animations, simple games, or visual variation is not a fairness primitive. A shuffle seed should be hard for another player, the server, or a script to predict before the deck is fixed.

This connects directly to cryptographic entropy in poker shuffles. Entropy is the fresh uncertainty behind the shuffle. Web Crypto is one practical browser-facing source for that kind of uncertainty.

Why Web Crypto is better than casual randomness

The Web Cryptography specification says the getRandomValues method generates cryptographically strong random values: W3C Web Cryptography. In plain language, it is meant for security-sensitive use, not just for making an output look mixed.

Poker is security-sensitive even when the game uses play chips. If a player can guess the seed, they may be able to narrow down the deck order. If a server can quietly choose the seed after seeing other inputs, the shuffle may be steerable. If nobody can replay the calculation, the site is still asking for trust.

That is why how random is a shuffle is not just a math question. The deck has many possible orders, but fairness depends on how the order was chosen and whether anyone could bias it.

What randomness does not prove

Strong random bytes do not prove that a poker site used them honestly. They do not prove that the deck was generated before betting began. They do not prove that no one saw hidden cards. They also do not stop collusion, account theft, or real-time assistance.

NIST's random bit generation publications separate entropy sources, deterministic generators, and testing because secure random output depends on more than one layer: NIST random bit generation publications. A poker system has another layer on top: public verification.

Randomness is the ingredient. Verification is the receipt. A player needs both to know that the deck was not merely "random-looking" but actually produced by the promised process.

This is where verifying a shuffle step by step becomes important. A verifiable system should expose enough inputs, commitments, and final results for the hand to be replayed independently.

A healthier checklist for browser poker

When judging a browser poker system, ask simple questions:

Fair Poker's focus is verifiable play-money poker, so the useful claim is not "the browser is magic." The useful claim is narrower: a browser can provide strong random input, and a careful protocol can turn that input into a shuffle players can check.

Final thought

Web Crypto is a strong building block for browser poker randomness. It helps answer the question "could the seed be guessed?" It does not answer every fairness question by itself. For trustworthy online poker, randomness must be paired with commitments, replayable records, and honest limits.

Curious how provable fairness is built?

Fair Poker is a non-profit open-source research project on verifiable Texas Hold’em fairness: the deck is co-encrypted and shuffled by participant browsers, there is no dealing server, and every hand can be verified independently. The project provides no gaming service to the public; the full source is published — download it and run your own instance to study it.

Download the source

This site is a non-profit open-source research project and provides no gaming service to the public; the demo is research-testing only with valueless test chips — no real-money gambling. This article is educational content, not betting advice.

← Back to all articles