2 * uxgen.c: Unix implementation of get_heavy_noise() from cmdgen.c.
11 char *get_random_data(int len
)
13 char *buf
= snewn(len
, char);
17 fd
= open("/dev/random", O_RDONLY
);
20 perror("puttygen: unable to open /dev/random");
26 ret
= read(fd
, buf
+ngot
, len
-ngot
);
29 perror("puttygen: unable to read /dev/random");