From f63b75c01bce572e57831cc8691044d7b0b78b42 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 24 Dec 2015 11:31:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=9A=8F=E6=9C=BA=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jumpserver/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpserver/api.py b/jumpserver/api.py index 646aeeeb2..68a013870 100644 --- a/jumpserver/api.py +++ b/jumpserver/api.py @@ -165,7 +165,7 @@ class PyCrypt(object): self.mode = AES.MODE_CBC @staticmethod - def gen_rand_pass(length, especial=False): + def gen_rand_pass(length=16, especial=False): """ random password 随机生成密码