]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* toplev.c (randomize): Correct call to time().
authorDanny Smith <dannysmith@users.sourceforge.net>
Tue, 8 Jul 2003 10:40:33 +0000 (10:40 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Tue, 8 Jul 2003 10:40:33 +0000 (10:40 +0000)
From-SVN: r69083

gcc/ChangeLog
gcc/toplev.c

index c2621df17dfbeea7251936e6f673679818a6d950..44b946beef5ca1f7434587cbb62db7f211f23350 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * toplev.c (randomize): Correct call to time().
+
 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
 
        * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
index 383744671813821a146e5d0db2c7ddf811e71bc9..b7bbe8aecbcbe1ede831f38911907e9fcd327e84 100644 (file)
@@ -1589,7 +1589,7 @@ randomize (void)
       }
 #else
       {
-       time_t now = time ();
+       time_t now = time (NULL);
 
        if (now != (time_t)-1)
          local_tick = (unsigned) now;