adhere to min dict size
This commit is contained in:
parent
ea2af1ffc4
commit
7d2b5613b4
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user