提交 6d672e40 编写于 作者: W weijun

6948287: KDC test strange knvo

Reviewed-by: xuelei
上级 86f3d091
......@@ -403,8 +403,11 @@ public class KDC {
*/
private static char[] randomPassword() {
char[] pass = new char[32];
for (int i=0; i<32; i++)
for (int i=0; i<31; i++)
pass[i] = (char)secureRandom.nextInt();
// The last char cannot be a number, otherwise, keyForUser()
// believes it's a sign of kvno
pass[31] = 'Z';
return pass;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册