diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-30 07:29:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-30 07:29:31 +0000 |
commit | a49b0f351926cf4376a58937a94e37426e3ae167 (patch) | |
tree | d2d36817e0cc65d0300385934474a29ecfcf353a /src/util/container_multihashmap.c | |
parent | 0b48745c1c6ec80a8e99bcdb9514e028b8656fe0 (diff) | |
download | gnunet-a49b0f351926cf4376a58937a94e37426e3ae167.tar.gz gnunet-a49b0f351926cf4376a58937a94e37426e3ae167.zip |
adding GNUNET_CONTAINER_multipeermap_get_random
Diffstat (limited to 'src/util/container_multihashmap.c')
-rw-r--r-- | src/util/container_multihashmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c index 80545176d..df6dd5704 100644 --- a/src/util/container_multihashmap.c +++ b/src/util/container_multihashmap.c | |||
@@ -841,7 +841,8 @@ GNUNET_CONTAINER_multihashmap_get_multiple (const struct | |||
841 | /** | 841 | /** |
842 | * @ingroup hashmap | 842 | * @ingroup hashmap |
843 | * Call @a it on a random value from the map, or not at all | 843 | * Call @a it on a random value from the map, or not at all |
844 | * if the map is empty. | 844 | * if the map is empty. Note that this function has linear |
845 | * complexity (in the size of the map). | ||
845 | * | 846 | * |
846 | * @param map the map | 847 | * @param map the map |
847 | * @param it function to call on a random entry | 848 | * @param it function to call on a random entry |