From 7d2b5613b4f067e36fd435e06ea4a476b736dc51 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Mon, 19 Jun 2017 17:37:14 -0700 Subject: [PATCH] adhere to min dict size --- tests/decodecorpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 4b42c6d7c..f5cfd6288 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -1388,7 +1388,7 @@ static int runTestMode(U32 seed, unsigned numFiles, unsigned const testDurationS } { /* don't create a dictionary that is too big */ - size_t const dictSize = RAND(&seed) % (10 << 20); + size_t const dictSize = RAND(&seed) % (10 << 20) + ZDICT_DICTSIZE_MIN; size_t const r = testDecodeWithDict(seed, dictSize); if (ZSTD_isError(r)) { DISPLAY("Error in dictionary mode on test seed %u: %s\n", seed+fnum, ZSTD_getErrorName(r));