crypt.c
changeset 128 efa226a4801e
parent 119 305d2ca32936
child 131 b5ad49852adc
equal deleted inserted replaced
127:162c0af185d7 128:efa226a4801e
     5 
     5 
     6 #include <stdio.h>
     6 #include <stdio.h>
     7 #include <stdlib.h>
     7 #include <stdlib.h>
     8 #include <time.h>
     8 #include <time.h>
     9 #include <unistd.h>
     9 #include <unistd.h>
    10 
       
    11 #ifndef NO_CRYPT
       
    12 #include <crypt.h>
       
    13 #endif
       
    14 
    10 
    15 #define GETRANDOM(max) ('a'+(int)((float)(max)*rand()/RAND_MAX+1.0))
    11 #define GETRANDOM(max) ('a'+(int)((float)(max)*rand()/RAND_MAX+1.0))
    16 
    12 
    17 int main (int argc, char **argv)
    13 int main (int argc, char **argv)
    18 {
    14 {