3 ms·
The feature I'm most excited about is the availability of a simple, sane, and correct CSPRNG: string random_bytes(int $numBytes); int random_int(int $m
by sarciszewski 11y ago
The feature I'm most excited about is the availability of a simple, sane, and correct CSPRNG:
string random_bytes(int $numBytes);
int random_int(int $min, int $max);
If you want to use this interface in a project that needs to be compatible with PHP 5, there's always https://github.com/paragonie/random_compat https://github.com/paragonie/random_compat