%PDF- %PDF-
Direktori : /proc/309157/task/309157/root/home/waritko/SharpPaste/Static/js/lib/ |
Current File : //proc/309157/task/309157/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; }