author | weijun |
Tue, 25 May 2010 18:20:54 +0800 | |
changeset 5622 | 2a600d13659a |
parent 5621 | 9e3da62f30aa |
child 5623 | 5c9695dc013a |
--- a/jdk/test/sun/security/krb5/auto/KDC.java Mon May 24 16:41:03 2010 -0400 +++ b/jdk/test/sun/security/krb5/auto/KDC.java Tue May 25 18:20:54 2010 +0800 @@ -403,8 +403,11 @@ */ 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; }