crypt.c
changeset 119 305d2ca32936
parent 77 49e0babccb23
child 128 efa226a4801e
equal deleted inserted replaced
118:17dff2c6fc88 119:305d2ca32936
     4  */
     4  */
     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>
       
    10 
       
    11 #ifndef NO_CRYPT
     9 #include <crypt.h>
    12 #include <crypt.h>
       
    13 #endif
    10 
    14 
    11 #define GETRANDOM(max) ('a'+(int)((float)(max)*rand()/RAND_MAX+1.0))
    15 #define GETRANDOM(max) ('a'+(int)((float)(max)*rand()/RAND_MAX+1.0))
    12 
    16 
    13 int main (int argc, char **argv)
    17 int main (int argc, char **argv)
    14 {
    18 {