Use alphanumeric characters for con req password

This commit is contained in:
Zaid Abdulla committed 2019-10-24 17:45:39 -07:00
1 parent 8533ee7f2e
commit 85b5e12c94
1 file changed
+1 -1
+1 -1
View File
@@ -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;