note 13065 deleted from function.rand.php by philip
| From: | philip@php.net | Date: | Sun, 26 Aug 2001 11:07:56 +0000 |
| Subject: | note 13065 deleted from function.rand.php by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17161@lists.php.net to get a copy of this message | ||
Un sistema un poco menos complicado para generar un psw (basado en los ejemplos anteriores)...:)
while ($i<7){
srand((double)microtime()*1000000);
$num=rand(0,255);
$txt=chr($num);
if (eregi("^[a-z0-9]$", $txt)) {
$psw=$psw.$txt;
$i++;
}
}