package de.nowchess.backcore.game

import java.security.SecureRandom

object GameId:
  private val chars  = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
  private val random = SecureRandom()

  def generate(): String =
    (1 to 8).map(_ => chars(random.nextInt(chars.length))).mkString
