Random seed.
I got it:
int main (int argc, char **argv) {
char salt[] = "aa";
char *password;
/* Read in the user's password and encrypt it. */
password = crypt ( argv[1], salt);
/* Print the results. */
puts ( password );
return 0;
}
Does anyone have any random seed generation code I could peruse?
|