Browse Source

Passwortgenerator angelegt

remotes/origin/tictactoedev
Kevin Ludwig 11 months ago
parent
commit
539537d9cd
  1. 18
      src/passwortgenerator.c

18
src/passwortgenerator.c

@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int run_passwortGenerator(){
printf("\nPasswort Generator\n\n");
char zeichen[] = "abcdefghijklmnopqrstuvwxyz";
int tmp = 0;
printf("\nIhr Passwort: ");
srand(time(0));
for(int i = 0; i < 10; i++)
{
tmp = rand() % 26;
printf("%c", zeichen[tmp]);
}
printf("\n");
return 0;
}
Loading…
Cancel
Save