Skip to content

Commit

Permalink
Use alphanumeric characters for con req password
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidka committed Oct 25, 2019
1 parent 8533ee7 commit 85b5e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const INFORM_SCRIPT = `
const username = declare("DeviceID.ID", {value: 1}).value[0]
// Password will be fixed a given device because Math.random() is seeded with devcie ID by default.
const password = "" + Math.random();
const password = Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString(36);
const informInterval = 300;
Expand Down

0 comments on commit 85b5e12

Please sign in to comment.