Generate a deterministic value from key and size. The fuzz input picks * a 16-bit length (up to MAX_VALUE_LEN) and an 8-bit multiplier so that a * small amount of fuzz input can produce a wide range of value sizes. */
| 109 | * a 16-bit length (up to MAX_VALUE_LEN) and an 8-bit multiplier so that a |
| 110 | * small amount of fuzz input can produce a wide range of value sizes. */ |
| 111 | std::vector<uint8_t> MakeValue(uint16_t key, uint32_t size) |
| 112 | { |
| 113 | std::vector<uint8_t> v(size); |
| 114 | std::iota(v.begin(), v.end(), static_cast<uint8_t>(key ^ (key >> 8))); |
| 115 | return v; |
| 116 | } |
| 117 | |
| 118 | /** Equivalent to leveldb::BytewiseComparator() on 2-byte little-endian |
| 119 | * serialized uint16_t keys, while keeping the oracle keyed by uint16_t. */ |
no test coverage detected