From: Sebastian Wilhelmi Date: Fri, 7 Apr 2000 11:44:43 +0000 (+0000) Subject: Fixed bug. Thanks to Marko Kreen for reporting that. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=028a71701c2098f33b1390b023a3d82b90bcf58a;p=dana%2Fcg-glib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 38a173bd..c967539a 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 47b9700b..3f51f0a8 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 47b9700b..3f51f0a8 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); }