Re: Problem in a generate password function

From: Date: Mon, 31 Mar 2008 22:33:50 +0000
Subject: Re: Problem in a generate password function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-272361@lists.php.net to get a copy of this message
At 12:20 PM -0700 3/31/08, Jim Lucas wrote:
I have a very similar routine, but for the previous line, since you can reference a string as an array, I do this: $char = $possible[mt_rand(0, strlen($possible)-1)]; In this example, it would save ten function calls, if not more. just a suggestion
Neat -- thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#272361) next »