(Previous commit did not catch the change)Increase the probability to generate keys after \xff\xff to test special key framework code

This commit is contained in:
Chaoguang Lin 2020-10-15 14:11:04 -07:00
parent c145dd5824
commit 3109aa7221
1 changed files with 2 additions and 2 deletions

View File

@ -418,8 +418,8 @@ struct FuzzApiCorrectnessWorkload : TestWorkload {
for (size_t j = 0; j < key_size; ++j)
skey.append(1, (char) deterministicRandom()->randomInt(0, 256));
// 10% of the time generating keys after \xff\xff to test special keys code
if (deterministicRandom()->random01() < 0.1)
// 15% (= 20% * 75%) of the time generating keys after \xff\xff to test special keys code
if (deterministicRandom()->random01() < 0.2)
return Key(skey).withPrefix(specialKeys.begin);
else
return Key(skey);