Closed asgrim closed 8 years ago
random_bytes and random_int should be used for randomness.
random_bytes
random_int
In order of preference: Use libsodium if available. fread() /dev/urandom if available (never on Windows) mcrypt_create_iv($bytes, MCRYPT_CREATE_IV) COM('CAPICOM.Utilities.1')->GetRandom() openssl_random_pseudo_bytes() (absolute last resort)
In order of preference:
random_bytes
andrandom_int
should be used for randomness.