1
0
mirror of https://github.com/S2-/pwgen.git synced 2025-08-03 01:00:04 +02:00

2 Commits

Author SHA1 Message Date
s2
969ad13e23 v1.1.13 2017-11-23 08:49:46 +01:00
s2
005570d04d fix length generator 2017-11-23 08:49:33 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"description": "Just a toolbar button that generates a password and copies it to your clipboard.", "description": "Just a toolbar button that generates a password and copies it to your clipboard.",
"manifest_version": 2, "manifest_version": 2,
"name": "pwgen reloaded", "name": "pwgen reloaded",
"version": "1.1.12", "version": "1.1.13",
"homepage_url": "https://github.com/S2-/pwgen", "homepage_url": "https://github.com/S2-/pwgen",
"icons": { "icons": {
"48": "icons/lock-48.png" "48": "icons/lock-48.png"

View File

@@ -15,7 +15,7 @@ function randPassword(length, includeSpecial) {
} }
function generateLength() { function generateLength() {
return Math.floor(Math.random() * getParams().lengthMax - getParams().lengthMin + 1) + getParams().lengthMin; return Math.floor(Math.random() * (1 + getParams().lengthMax - getParams().lengthMin)) + getParams().lengthMin;
} }
function getParams() { function getParams() {