mirror of
https://github.com/S2-/pwgen.git
synced 2025-08-02 17:00:03 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
969ad13e23 | |||
005570d04d |
@@ -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"
|
||||||
|
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user