adhere to min dict size

This commit is contained in:
Paul Cruz 2017-06-19 17:37:14 -07:00
parent ea2af1ffc4
commit 7d2b5613b4

View File

@ -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));