adf1096a03
PuTTY is a SSH and Telnet client implementation. This package contains the command-line clients and supporting utilities for key generation. feedback steven@ mbalmer@; ok mbalmer@
26 lines
753 B
Plaintext
26 lines
753 B
Plaintext
$OpenBSD: patch-unix_uxgen_c,v 1.1.1.1 2007/09/04 09:14:00 djm Exp $
|
|
--- unix/uxgen.c.orig Tue Sep 4 17:31:05 2007
|
|
+++ unix/uxgen.c Tue Sep 4 17:31:16 2007
|
|
@@ -14,10 +14,10 @@ char *get_random_data(int len)
|
|
int fd;
|
|
int ngot, ret;
|
|
|
|
- fd = open("/dev/random", O_RDONLY);
|
|
+ fd = open("/dev/arandom", O_RDONLY);
|
|
if (fd < 0) {
|
|
sfree(buf);
|
|
- perror("puttygen: unable to open /dev/random");
|
|
+ perror("puttygen: unable to open /dev/arandom");
|
|
return NULL;
|
|
}
|
|
|
|
@@ -26,7 +26,7 @@ char *get_random_data(int len)
|
|
ret = read(fd, buf+ngot, len-ngot);
|
|
if (ret < 0) {
|
|
close(fd);
|
|
- perror("puttygen: unable to read /dev/random");
|
|
+ perror("puttygen: unable to read /dev/arandom");
|
|
return NULL;
|
|
}
|
|
ngot += ret;
|