git/reftable
Patrick Steinhardt 712f6cfe54 reftable/system: introduce `reftable_rand()`
Introduce a new system-level `reftable_rand()` function that generates a
single unsigned integer for us. The implementation of this function is
to be provided by the calling codebase, which allows us to more easily
hook into pre-seeded random number generators.

Adapt the two callsites where we generated random data.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-02-18 10:55:38 -08:00
..
LICENSE
basics.c reftable/basics: provide wrappers for big endian conversion 2025-02-18 10:55:37 -08:00
basics.h reftable/basics: provide wrappers for big endian conversion 2025-02-18 10:55:37 -08:00
block.c reftable/basics: provide wrappers for big endian conversion 2025-02-18 10:55:37 -08:00
block.h reftable/block: adapt header and footer size to return a `size_t` 2025-01-21 14:20:29 -08:00
blocksource.c reftable/blocksource: stop using `xmmap()` 2025-02-18 10:55:35 -08:00
blocksource.h reftable/blocksource: adapt interface name 2024-10-17 16:59:56 -04:00
constants.h
error.c
iter.c reftable: stop using `BUG()` in trivial cases 2025-02-18 10:55:36 -08:00
iter.h
merged.c reftable/record: don't `BUG()` in `reftable_record_cmp()` 2025-02-18 10:55:36 -08:00
merged.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
pq.c reftable/record: don't `BUG()` in `reftable_record_cmp()` 2025-02-18 10:55:36 -08:00
pq.h reftable/record: don't `BUG()` in `reftable_record_cmp()` 2025-02-18 10:55:36 -08:00
reader.c reftable/reader: stop using `ARRAY_SIZE()` macro 2025-02-18 10:55:37 -08:00
reader.h reftable/blocksource: adjust `read_block()` to return `ssize_t` 2025-01-21 14:20:30 -08:00
record.c reftable/basics: provide wrappers for big endian conversion 2025-02-18 10:55:37 -08:00
record.h reftable/record: don't `BUG()` in `reftable_record_cmp()` 2025-02-18 10:55:36 -08:00
reftable-basics.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-blocksource.h reftable/blocksource: adjust `read_block()` to return `ssize_t` 2025-01-21 14:20:30 -08:00
reftable-error.h reftable: prevent 'update_index' changes after adding records 2025-01-22 09:51:36 -08:00
reftable-iterator.h
reftable-merged.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-reader.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-record.h reftable/basics: adjust `hash_size()` to return `uint32_t` 2025-01-21 14:20:29 -08:00
reftable-stack.h reftable/stack: add accessor for the hash ID 2024-11-26 17:18:36 +09:00
reftable-writer.h Merge branch 'kn/reflog-migration-fix-followup' 2025-02-14 17:53:48 -08:00
stack.c reftable/system: introduce `reftable_rand()` 2025-02-18 10:55:38 -08:00
stack.h
system.c reftable/system: introduce `reftable_rand()` 2025-02-18 10:55:38 -08:00
system.h reftable/system: introduce `reftable_rand()` 2025-02-18 10:55:38 -08:00
tree.c
tree.h
writer.c reftable/basics: provide wrappers for big endian conversion 2025-02-18 10:55:37 -08:00
writer.h reftable: rename scratch buffer 2024-11-26 08:39:38 +09:00