diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-04-27 10:33:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-05-12 11:21:28 -0400 |
commit | e40cfc4425d1e173b5d122e38ab07dd798b11925 (patch) | |
tree | 4fd8f84d80731b17635857c6a7629f35e1dab434 /src/common/di_ops.h | |
parent | 20432fc541bf0fb8f136f0d4635b264c624ce3eb (diff) | |
download | tor-e40cfc4425d1e173b5d122e38ab07dd798b11925.tar.gz tor-e40cfc4425d1e173b5d122e38ab07dd798b11925.zip |
Move the ctime part of choose_array_element_by_weight into di_ops
This way it gets the ctime options.
Diffstat (limited to 'src/common/di_ops.h')
-rw-r--r-- | src/common/di_ops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/di_ops.h b/src/common/di_ops.h index 6e77b5cfd7..f1050a00db 100644 --- a/src/common/di_ops.h +++ b/src/common/di_ops.h @@ -42,6 +42,8 @@ void dimap_add_entry(di_digest256_map_t **map, const uint8_t *key, void *val); void *dimap_search(const di_digest256_map_t *map, const uint8_t *key, void *dflt_val); +int select_array_member_cumulative_timei(const uint64_t *entries, int n_entries, + uint64_t total, uint64_t rand_val); #endif |