aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-04 13:41:25 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-04 13:42:57 +0200
commit8c3d9fc59cd5617c4f5b7ea621971bdff25f5353 (patch)
tree910d8bdd653c13d47d943c69b405e2818aac2d14 /src/rps/rps-test_util.h
parenta6f561efa7359dae5af8bfd3763e4f16168030ab (diff)
downloadgnunet-8c3d9fc59cd5617c4f5b7ea621971bdff25f5353.tar.gz
gnunet-8c3d9fc59cd5617c4f5b7ea621971bdff25f5353.zip
RPS: Return peers to client after many observed ids
Diffstat (limited to 'src/rps/rps-test_util.h')
-rw-r--r--src/rps/rps-test_util.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h
index 5009073d0..6b5f568d7 100644
--- a/src/rps/rps-test_util.h
+++ b/src/rps/rps-test_util.h
@@ -107,5 +107,26 @@ to_file_raw_unaligned (const char *file_name,
107 size_t size_buf, 107 size_t size_buf,
108 unsigned bits_needed); 108 unsigned bits_needed);
109 109
110
111/**
112 * @brief Factorial
113 *
114 * @param x Number of which to compute the factorial
115 *
116 * @return Factorial of @a x
117 */
118uint32_t fac (uint32_t x);
119
120
121/**
122 * @brief Binomial coefficient (n choose k)
123 *
124 * @param n
125 * @param k
126 *
127 * @return Binomial coefficient of @a n and @a k
128 */
129uint32_t binom (uint32_t n, uint32_t k);
130
110#endif /* RPS_TEST_UTIL_H */ 131#endif /* RPS_TEST_UTIL_H */
111/* end of gnunet-service-rps.c */ 132/* end of gnunet-service-rps.c */