Mirror of git://git.busybox.net/busybox with our patches on top
Source
33
33
*/
34
34
35
35
#include "busybox.h"
36
36
#include <other.h>
37
37
38
38
int mu_main(int argc, char **argv)
39
39
{
40
40
int fd;
41
41
char mu;
42
42
43
-
fd = bb_xopen("/dev/random", O_RDONLY);
43
+
fd = xopen("/dev/random", O_RDONLY);
44
44
45
45
if ((n = safe_read(fd, &mu, 1)) < 1)
46
46
bb_perror_msg_and_die("/dev/random");
47
47
48
48
return mu;
49
49
}
50
50
51
51
----end example code------
52
52
53
53