str::quickRandom($length = false, $type = 'alphaNum')
- since: Kirby 2.4.0
The length of the random string
Pool type (type of allowed characters)
This method is faster than str::random($length = false, $type = 'alphaNum') in most cases, but should not be considered sufficient for cryptography, etc.
Please note that
str::random can sometimes be faster, e.g. when the pool is very large (e.g. 'alphaNum' or 'alpha').