> Why define the alphabet? Just use decimal values for the asci char set.

So, just because I'm bored, in the unrolled loop I created I change the
alphabet to Raymond's chr:

<cfset random_word = random_word & chr(randRange(65,90))>

The speed increase was fairly slight:

 Original code (executed 1000 times): 9994 ms (average)
 Unrolled code (executed 1000 times): 1993 ms (average)
Unrolled w/chr (executed 1000 times): 1932 ms (average)

But it looks much nicer than repeating  the alphabet in each line.

I was going to mention that when I generate passwords I tend to NOT use the
letters O, I and L and the numbers 1 and 0. Those create too many "my
password doesn't work!" tech support calls.

 ..jj..

 - - - - -
Get your free email account: [EMAIL PROTECTED]
Sign up at http://www.alakazam.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to