View Single Post
Old 06-11-2008, 12:09 PM   #7 (permalink)
sketchMedia
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 469
Thanks: 26
sketchMedia is on a distinguished road
Default

Quote:
Sketch, thanks for the note about the off-by-one error on $len however you introduce one yourself by changing the final for loop to use intval($passLen-1) (the resulting random string will always be one character less than $passLen).
Its not an undefined offset, but yes thanks for noticing that, i didn't mean to post the code with that line in, i must have left it in when i was messing with the code earlier no idea why mind but there you go.

note to self: learn how to use copy and paste properly
__________________
sketchMedia is offline  
Reply With Quote