From dc834c8157a0f0f4c3b361ad3cb836a57d2678aa Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Tue, 13 Sep 2022 11:49:13 +0800 Subject: [PATCH] rename 'boot:windows' to 'boot:win'; install 'run-script-os' with '--save-dev'. --- ticc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticc.js b/ticc.js index 8169381..27aad3a 100644 --- a/ticc.js +++ b/ticc.js @@ -968,7 +968,7 @@ class TicCrypto { */ static randomize_number ({ length, min, max } = {}) { // 长度为 length 的随机数字,或者 (min||0) <= num < max - var num = 0 + let num = 0 if (typeof length === 'number' && length > 0) { num = parseInt(Math.random() * Math.pow(10, length)) num = this.padStart(num.toString(), length, '0')