Zend\Math\Rand::getBytes
Generate random bytes using OpenSSL or Mcrypt and mt_rand() as fallback
Signature
public function getBytes(int
$length,
[bool
$strong = false] )
Parameters
$length
— int$strong
— object- true if you need a strong random generator (cryptography)
Returns
- string