Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2025-11-16 19:38:14 +01:00
commit d355b952bd

View File

@ -50,9 +50,10 @@ class Utilities { /* {{{ */
* @return string random string * @return string random string
*/ */
static public function makeRandomString($n, $alph = "0123456789abcdefghijklmnopqrstuvwxyz") { /* {{{ */ static public function makeRandomString($n, $alph = "0123456789abcdefghijklmnopqrstuvwxyz") { /* {{{ */
$len = strlen($alph)-1;
$s = ""; $s = "";
for ($i = 0; $i != $n; ++$i) for ($i = 0; $i != $n; ++$i)
$s .= $alph[mt_rand(0, 35)]; $s .= $alph[mt_rand(0, $len)];
return $s; return $s;
} /* }}} */ } /* }}} */