I generate a random string with this:
$characters = '0123456789QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm';
$cl = strlen($characters) -1;
$id = '';
for ($p = 0; $p < $le; $p++) {N
$id .= $characters[mt_rand(0, $cl)];
}
Now, if I do str_shuffle($id), it will add entropy, i.e. will make the string more random?
source
share