Talk:Random Password Generator

From Second Life Wiki
Revision as of 10:26, 26 March 2014 by Omei Qunhua (talk | contribs) (correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.