diff options
Diffstat (limited to 'package/corosync/patches')
-rw-r--r-- | package/corosync/patches/patch-tools_corosync-keygen_c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/corosync/patches/patch-tools_corosync-keygen_c b/package/corosync/patches/patch-tools_corosync-keygen_c new file mode 100644 index 000000000..6e147930c --- /dev/null +++ b/package/corosync/patches/patch-tools_corosync-keygen_c @@ -0,0 +1,26 @@ +--- corosync-1.3.1.orig/tools/corosync-keygen.c 2011-04-25 04:37:50.000000000 +0200 ++++ corosync-1.3.1/tools/corosync-keygen.c 2011-05-26 07:27:22.000000000 +0200 +@@ -65,11 +65,11 @@ int main (void) { + } + } + +- printf ("Gathering %lu bits for key from /dev/random.\n", (unsigned long)(sizeof (key) * 8)); ++ printf ("Gathering %lu bits for key from /dev/urandom.\n", (unsigned long)(sizeof (key) * 8)); + printf ("Press keys on your keyboard to generate entropy.\n"); +- random_fd = open ("/dev/random", O_RDONLY); ++ random_fd = open ("/dev/urandom", O_RDONLY); + if (random_fd == -1) { +- perror ("Is /dev/random present? Opening /dev/random"); ++ perror ("Is /dev/urandom present? Opening /dev/urandom"); + exit (errno); + } + +@@ -81,7 +81,7 @@ int main (void) { + retry_read: + res = read (random_fd, &key[bytes_read], sizeof (key) - bytes_read); + if (res == -1) { +- perror ("Could not read /dev/random"); ++ perror ("Could not read /dev/urandom"); + exit (errno); + } + bytes_read += res; |