Talk:Random Password Generator: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
correction
 
(No difference)

Latest revision as of 11:26, 26 March 2014

correction

The script got edited to include the following:-

       // because llFrand is [0, mag)
       integer upperLimit = llStringLength(characters) + 1;

However, the range we want from (integer) llFrand() is 0 to string-length -1. Therefore the +1 is not needed, in fact it causes passwords to be generated of less than the desired length.