Fix subscript out of range in test

pull/418/head
Jeffrey Walton 2017-05-11 02:57:48 -04:00
parent 598f838e0a
commit c87b0d1485
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ bool TestCompressors()
for (unsigned int i=0; i<128; i++)
{
std::string src, dest;
unsigned int len = GlobalRNG().GenerateWord32(0, 0xfff);
unsigned int len = GlobalRNG().GenerateWord32(8, 0xfff);
src.resize(len);
GlobalRNG().GenerateBlock(reinterpret_cast<byte*>(&src[0]), src.size());