Fixed bug. Thanks to Marko Kreen <marko@l-t.ee> for reporting that.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Fri, 7 Apr 2000 11:44:43 +0000 (11:44 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Fri, 7 Apr 2000 11:44:43 +0000 (11:44 +0000)
2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
<marko@l-t.ee> for reporting that.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/grand.c
grand.c

index 38a173b..c967539 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 38a173b..c967539 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
+       <marko@l-t.ee> for reporting that.
+
 2000-03-26  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Tell about using the mingw-based gcc, which is
index 47b9700..3f51f0a 100644 (file)
@@ -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 47b9700..3f51f0a 100644 (file)
--- 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);
        }