| 740 | } |
| 741 | |
| 742 | static int format_name(struct reftable_buf *dest, uint64_t min, uint64_t max) |
| 743 | { |
| 744 | char buf[100]; |
| 745 | uint32_t rnd = reftable_rand(); |
| 746 | snprintf(buf, sizeof(buf), "0x%012" PRIx64 "-0x%012" PRIx64 "-%08x", |
| 747 | min, max, rnd); |
| 748 | reftable_buf_reset(dest); |
| 749 | return reftable_buf_addstr(dest, buf); |
| 750 | } |
| 751 | |
| 752 | void reftable_addition_destroy(struct reftable_addition *add) |
| 753 | { |
no test coverage detected