18 lines
301 B
C
18 lines
301 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include "fonctions.h"
|
|
|
|
int generate(int count)
|
|
{
|
|
char cle[count];
|
|
int a,i;
|
|
char characteres[26]="azertyuiopqsdfghjklmwxcvbn";
|
|
srand(time(NULL));
|
|
for(a=0;a<count;a++)
|
|
{
|
|
i = rand()%26;
|
|
cle[a]=characteres[i];
|
|
}
|
|
return EXIT_SUCCESS;
|
|
} |