| 705 | Key getRandomKey() { return getKeyForIndex(deterministicRandom()->randomInt(0, nodes)); } |
| 706 | |
| 707 | Key getKeyForIndex(int idx) { |
| 708 | idx += minNode; |
| 709 | if (adjacentKeys) { |
| 710 | return Key(keyPrefix + (idx ? std::string(idx, '\x00') : "")); |
| 711 | } else { |
| 712 | return Key(keyPrefix + format("%010d", idx)); |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | Key versionStampKeyForIndex(int idx) { |
| 717 | Key result = KeyRef(getKeyForIndex(idx).toString() + std::string(14, '\x00')); |
no test coverage detected