Merge pull request #2975 from octo/issue/2954
[collectd.git] / src / daemon / utils_random.h
index d56bcf6..e25ae9b 100644 (file)
  *
  * This function is thread- and reentrant-safe.
  */
-double cdrand_d(void);
+double cdrand_d();
+
+/**
+ * cdrand_u returns a random uint32_t value uniformly distributed in the range
+ * [0-2^32).
+ *
+ * This function is thread- and reentrant-safe.
+ */
+uint32_t cdrand_u();
 
 /**
  * Returns a random long between min and max, inclusively.