isInit()) { echo 'Error db init'; return; } $db->cleanCloud(); $length = 6; $token = bin2hex(random_bytes($length)); while (!$db->createCloud($token)) { $token = bin2hex(random_bytes($length)); } ?>