Home
last modified time | relevance | path

Searched refs:random_pwd (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c1480 char *random_pwd = NULL; in generate_random_password() local
1490 random_pwd = (char *)malloc(data.length + 1); in generate_random_password()
1491 if (random_pwd == NULL) { in generate_random_password()
1495 memset(random_pwd, 0, data.length + 1); in generate_random_password()
1496 data.data = random_pwd; in generate_random_password()
1501 free(random_pwd); in generate_random_password()
1507 if ((unsigned char)random_pwd[i] > 127) { in generate_random_password()
1508 random_pwd[i] = (unsigned char)random_pwd[i] % 128; in generate_random_password()
1509 } else if (random_pwd[i] == 0) { in generate_random_password()
1510 random_pwd[i] = (rand()/(RAND_MAX/127 + 1))+1; in generate_random_password()
[all …]