urandom.c
changeset 27 81a574d60c15
parent 20 5fec678f931b
child 29 7abf6146898e
equal deleted inserted replaced
26:d227047a3e88 27:81a574d60c15
    16 }
    16 }
    17 
    17 
    18 int main (int argc, char **argv)
    18 int main (int argc, char **argv)
    19 {
    19 {
    20     int i;
    20     int i;
       
    21 
    21     int elements;
    22     int elements;
       
    23 
    22     int fd;
    24     int fd;
    23     unsigned char numbers[256] = { 0 };
    25     unsigned char numbers[256] = { 0 };
    24 
    26 
    25     fd = open ("/dev/urandom", O_RDONLY);
    27     fd = open ("/dev/urandom", O_RDONLY);
    26     if (fd == -1)
    28     if (fd == -1)