rand or mt_rand is used to generate a token or key, producing predictable values.
Use random_bytes() or random_int() for cryptographically secure token generation.