]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
should be updating seed whenever multiple files are generated
authorPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 17:23:36 +0000 (10:23 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 17:23:36 +0000 (10:23 -0700)
tests/decodecorpus.c

index 6447567f91d2dac78c268b8b73845d2e6f90459f..9e4ff810c452293a3a8fe87308b4aa8d96b52ed1 100644 (file)
@@ -1389,7 +1389,7 @@ static int runTestMode(U32 seed, unsigned numFiles, unsigned const testDurationS
 
         {
             dictInfo const info = initDictInfo(0, 0, NULL, 0);
-            generateFrame(seed, &fr, info);
+            seed = generateFrame(seed, &fr, info);
         }
 
         {   size_t const r = testDecodeSimple(&fr);
@@ -1461,7 +1461,7 @@ static int generateCorpus(U32 seed, unsigned numFiles, const char* const path,
 
         {
             dictInfo const info = initDictInfo(0, 0, NULL, 0);
-            generateFrame(seed, &fr, info);
+            seed = generateFrame(seed, &fr, info);
         }
 
         if (snprintf(outPath, MAX_PATH, "%s/z%06u.zst", path, fnum) + 1 > MAX_PATH) {