From: Paul Cruz Date: Thu, 22 Jun 2017 17:23:36 +0000 (-0700) Subject: should be updating seed whenever multiple files are generated X-Git-Tag: v1.3.0~1^2~15^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98751f69e77433013e6842f742626dc83f1b5cf5;p=thirdparty%2Fzstd.git should be updating seed whenever multiple files are generated --- diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 6447567f9..9e4ff810c 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -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) {