Mailinglisten-Archive |
hi namensgefährte!
ist n schuss ins blaue, aber müßtest du nicht jedesmal vor aufruf von rand() seeden? also srand() aufrufen und nicht nur einmal am
anfang? so ungefähr?
$Pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$Pool .= "abcdefghijklmnopqrstuvwxyz";
for($index = 0; $index < $length; $index++)
{
srand ((double)microtime()*1000000);
$sid .= substr($Pool,
(rand()%(strlen($Pool))), 1);
}
> Ciao
> Christian
dito =)
_________________________________________________________
Do You Yahoo!?
Get your free _(at)_yahoo.com address at http://mail.yahoo.com
php::bar PHP Wiki - Listenarchive