diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-07 22:13:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-07 22:13:35 +0000 |
commit | d7ca48210edc48378a652f64b80238d2e7f6817e (patch) | |
tree | 5294059b14493e7f88cd94eb2a9772cce0e1881f /src/include/gnunet_container_lib.h | |
parent | 24f093b9c446d733e2f281972f080729e1ede160 (diff) | |
download | gnunet-d7ca48210edc48378a652f64b80238d2e7f6817e.tar.gz gnunet-d7ca48210edc48378a652f64b80238d2e7f6817e.zip |
-function never existed
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r-- | src/include/gnunet_container_lib.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index 80c0a78ee..06160063a 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -1082,24 +1082,6 @@ GNUNET_CONTAINER_heap_iterate (const struct GNUNET_CONTAINER_Heap *heap, | |||
1082 | GNUNET_CONTAINER_HeapIterator iterator, | 1082 | GNUNET_CONTAINER_HeapIterator iterator, |
1083 | void *iterator_cls); | 1083 | void *iterator_cls); |
1084 | 1084 | ||
1085 | |||
1086 | /** | ||
1087 | * Return a *uniform* random element from the heap. Choose a random | ||
1088 | * number between 0 and heap size and then walk directly to it. | ||
1089 | * This cost can be between 0 and n, amortized cost of logN. | ||
1090 | * | ||
1091 | * @param heap heap to choose random element from | ||
1092 | * @param max how many nodes from the heap to choose from | ||
1093 | * | ||
1094 | * @return data stored at the chosen random node, | ||
1095 | * NULL if the heap is empty. | ||
1096 | * | ||
1097 | */ | ||
1098 | void * | ||
1099 | GNUNET_CONTAINER_heap_get_random (struct GNUNET_CONTAINER_Heap *heap, | ||
1100 | uint32_t max); | ||
1101 | |||
1102 | |||
1103 | /** | 1085 | /** |
1104 | * Perform a random walk of the tree. The walk is biased | 1086 | * Perform a random walk of the tree. The walk is biased |
1105 | * towards elements closer to the root of the tree (since | 1087 | * towards elements closer to the root of the tree (since |