OSDN Git Service

tools/trasher: Don't mix srand/rand and srandom/random interface.
authorMatthieu Castet <castet.matthieu@free.fr>
Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)
patch by matthieu castet, castet.matthieu free fr

Originally committed as revision 14222 to svn://svn.ffmpeg.org/ffmpeg/trunk

tools/trasher.c

index 9e1961f..baf1bc3 100644 (file)
@@ -41,7 +41,7 @@ int main(int argc, char** argv)
     count= atoi(argv[2]);
     maxburst= atoi(argv[3]);
 
-    srand (time (0));
+    srandom (time (0));
 
     fseek(f, 0, SEEK_END);
     length= ftell(f);