(no subject)

Monday, August 28th, 2006 18:23
kastaneda: (Default)
[personal profile] kastaneda
    // creates wellformed password
    
function GeneratePassword() {
        
$consts='bcdgklmnprst';
        
$vowels='aeiou';
        for (
$x=0$x 6$x++) {
            
mt_srand ((double) microtime() * 1000000);
            
$const[$x] = substr($consts,mt_rand(0,strlen($consts)-1),1);
            
$vow[$x] = substr($vowels,mt_rand(0,strlen($vowels)-1),1);
        }
        return 
$const[0] . $vow[0] .$const[2] . $const[1] . $vow[1] . $const[3] . $vow[3] . $const[4];
    }


Смущают меня индексы массива. Что-то тут странное.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

September 2025

M T W T F S S
12345 67
891011121314
15161718192021
22232425262728
2930