Zend\Math\Rand::getString
Generate a random string of specified length.
Uses supplied character list for generating the new string. If no character list provided - uses Base 64 character set.
Signature
public function getString(int
$length,
[string|null
$charlist = null,
[bool
$strong = false]] )
Parameters
$length
— int$charlist
— object
$strong
— object- true if you need a strong random generator (cryptography)
Returns
- string