%PDF- %PDF-
| Direktori : /proc/self/root/home/waritko/SharpPaste/Static/js/lib/ |
| Current File : //proc/self/root/home/waritko/SharpPaste/Static/js/lib/pwgen.js |
function generatePassword(length) {
var password = '', character;
while (length > password.length) {
if (password.indexOf(character = String.fromCharCode(Math.floor(Math.random() * 94) + 33), Math.floor(password.length / 94) * 94) < 0) {
password += character;
}
}
return password;
}