#include <stdio.h>
#include <time.h>
#include <stdlib.h>
void generatePassword(int password_length, char password[]) {
srand(time(NULL));
int i = 0;
int tmp = password_length;
while (tmp--) {
password[i++] = rand() % (126 - 33 + 1) + 33;
}
tmp = password_length;
}
int main(void) {
char password[11] = "";
generatePassword(10, password);
puts(password);
return 0;
}
/*
run :
8?*>SrV@4=
*/