mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-18 09:27:51 +00:00
6948287: KDC test strange knvo
Reviewed-by: xuelei
This commit is contained in:
parent
df80fea7a5
commit
235a3e379c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user