Back to Home

Official certification report

Official Certification Report: FreestyleChess.AI Position Generator

Auditor
TrueRandom.io
Date
March 17, 2026
Status
PASS / ELITE-GRADE CERTIFIED

White-box audit of the position generator for elite/GM tournament play. The generator passed mathematical uniformity and cryptographic security. FreestyleChess.AI

Scope

  • Server-side seed generation and commitment (HMAC-SHA256)
  • Client-server state and nonce progression
  • Conversion of hashes to base-960 indices
  • Static verification of the 960-position dataset

Remediations

Both items below were fixed by FreestyleChess.AI.

Replay attack

Strict monotonic nonce progression. HTTP ETags (onlyIfMatch) for atomic race-proof state updates, preventing out-of-order or duplicate generations.

Modulo bias

Index derivation (% 960) was replaced with rejection sampling, discarding integers >= 4,294,967,040, with a deterministic retryCounter, so P(X=x)=1/960.

Proofs

  • The PRNG is commit-and-reveal HMAC-SHA256.
  • Client seed entropy isolates the server from pre-computing outcomes.
  • Uniformity is achieved via rejection sampling.
  • Exactly 960 unique positions, with 100% Scharnagl constraints (bishops on opposite colors, king strictly between rooks).
  • positions_data.js SHA-256: 58b340bf1d545138312db467a7a74b714a3d11d654d5b04b68abfbf58869e725

Fair play

The position generator is mathematically sound, cryptographically secure, and resistant to manipulation, look-ahead, and seeding bias. Each position has an equal verifiable probability. Certified for professional elite/GM Freestyle Chess (Chess960).

Read the Learn articles