36位数为0-9和a-z,不可以重复,上下对应,
例如:
abcde123
b3ac2e1d
(例子不完整,要完整的
供参考:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#define PWDLENGTH 8
int main()
{
srand((unsigned int)time(NULL));
char pwds[] = "0123456789abcdefghijklmnopqrstuvwxyz";
int i = 0, len = sizeof(pwds) - 1;
while (1)
{
for (i = 0; i < PWDLENGTH; i++)
printf("%c", pwds[rand() % len]);
printf("\n");
Sleep(400);
}
return 0;
}