diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/assets/js/util/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 99c76377..cecc8dd4 100644 --- a/web/assets/js/util/index.js +++ b/web/assets/js/util/index.js @@ -139,7 +139,7 @@ class RandomUtil { static randomShadowsocksPassword() { let array = new Uint8Array(32); window.crypto.getRandomValues(array); - return btoa(String.fromCharCode.apply(null, array)); + return Base64.encode(String.fromCharCode.apply(null, array)); } } |
