diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-15 11:32:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-15 11:34:42 +0200 |
commit | 6e7793d8d8018baeb85fb661e1ee58251b61bf9a (patch) | |
tree | b5cce84fbee99f8df6dc8116209b77bff6dfddce /src/include | |
parent | 45a04d9f5558f666c01f7fd0844be964bf610c9a (diff) | |
download | gnunet-6e7793d8d8018baeb85fb661e1ee58251b61bf9a.tar.gz gnunet-6e7793d8d8018baeb85fb661e1ee58251b61bf9a.zip |
misc work on TNG
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_time_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index 482ae52d8..d0da267a9 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h | |||
@@ -190,6 +190,16 @@ GNUNET_TIME_randomized_backoff(struct GNUNET_TIME_Relative rt, struct GNUNET_TIM | |||
190 | 190 | ||
191 | 191 | ||
192 | /** | 192 | /** |
193 | * Return a random time value between 0.5*r and 1.5*r. | ||
194 | * | ||
195 | * @param r input time for scaling | ||
196 | * @return randomized time | ||
197 | */ | ||
198 | struct GNUNET_TIME_Relative | ||
199 | GNUNET_TIME_randomize(struct GNUNET_TIME_Relative r); | ||
200 | |||
201 | |||
202 | /** | ||
193 | * Return relative time of 0ms. | 203 | * Return relative time of 0ms. |
194 | */ | 204 | */ |
195 | struct GNUNET_TIME_Relative | 205 | struct GNUNET_TIME_Relative |