12-10-2007, 08:53 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Posts: 60
Thanks: 5
|
Avoid using str_split when you don't have to.. initializing the array yourself is a lot more efficient. str_split, and other methods that take care of initiliazing, were made for the manipulation of un-controllable data and such.
And as VI already said.. Just do random letters! Use uniqid() and MD5
PHP Code:
$pass = substr( md5( uniqid( mt_rand(), true ) ), 0, mt_rand( 5, 12 ) );
|
|
|
|