instar 1.3.928 → 1.3.930

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9590,7 +9590,7 @@ Two layers keep my machine-to-machine \"ropes\" (Tailscale / LAN / Cloudflare) h
9590
9590
  // Auto-generate dashboardPin if missing — the dashboard should always be
9591
9591
  // accessible via PIN, not bearer token. Users don't need to know about tokens.
9592
9592
  if (!config.dashboardPin && config.authToken) {
9593
- const pin = String(Math.floor(100000 + Math.random() * 900000)); // 6-digit PIN
9593
+ const pin = String(crypto.randomInt(100000, 1000000)); // 6-digit PIN
9594
9594
  config.dashboardPin = pin;
9595
9595
  patched = true;
9596
9596
  result.upgraded.push(`config.json: generated dashboard PIN (${pin})`);