RECLAIM/OIDC: code cleanup
[oweals/gnunet.git] / src / include / gnunet_time_lib.h
index 482ae52d881f88da750c1c7be084e014bc2fe586..d0da267a9504763b5e7a67dd235087cebb86d71c 100644 (file)
@@ -189,6 +189,16 @@ struct GNUNET_TIME_Relative
 GNUNET_TIME_randomized_backoff(struct GNUNET_TIME_Relative rt, struct GNUNET_TIME_Relative threshold);
 
 
+/**
+ * Return a random time value between 0.5*r and 1.5*r.
+ * 
+ * @param r input time for scaling
+ * @return randomized time
+ */ 
+struct GNUNET_TIME_Relative
+GNUNET_TIME_randomize(struct GNUNET_TIME_Relative r);
+
+
 /**
  * Return relative time of 0ms.
  */