From 028a71701c2098f33b1390b023a3d82b90bcf58a Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Fri, 7 Apr 2000 11:44:43 +0000 Subject: [PATCH] Fixed bug. Thanks to Marko Kreen for reporting that. 2000-04-07 Sebastian Wilhelmi * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen for reporting that. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/grand.c | 2 -- grand.c | 2 -- 10 files changed, 40 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38a173bd8..c967539ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 38a173bd8..c967539ae 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2000-04-07 Sebastian Wilhelmi + + * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen + for reporting that. + 2000-03-26 Tor Lillqvist * README.win32: Tell about using the mingw-based gcc, which is diff --git a/glib/grand.c b/glib/grand.c index 47b9700b3..3f51f0a89 100644 --- a/glib/grand.c +++ b/glib/grand.c @@ -85,8 +85,6 @@ g_rand_new (void) if (dev_urandom) { if (fread (&seed, sizeof (seed), 1, dev_urandom) != 1) - seed = 0; - else dev_urandom_exists = FALSE; fclose (dev_urandom); } diff --git a/grand.c b/grand.c index 47b9700b3..3f51f0a89 100644 --- a/grand.c +++ b/grand.c @@ -85,8 +85,6 @@ g_rand_new (void) if (dev_urandom) { if (fread (&seed, sizeof (seed), 1, dev_urandom) != 1) - seed = 0; - else dev_urandom_exists = FALSE; fclose (dev_urandom); }