10 static __attribute__((noinline
))
11 void urandom_read(int fd
, int count
)
16 for (i
= 0; i
< count
; ++i
)
17 read(fd
, buf
, BUF_SIZE
);
20 int main(int argc
, char *argv
[])
22 int fd
= open("/dev/urandom", O_RDONLY
);
29 count
= atoi(argv
[1]);
31 urandom_read(fd
, count
);