projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Auto-Merge pull request #2519 from octo/ff/strerror
[collectd.git]
/
src
/
daemon
/
utils_random.h
diff --git
a/src/daemon/utils_random.h
b/src/daemon/utils_random.h
index
d56bcf6
..
75bdc12
100644
(file)
--- a/
src/daemon/utils_random.h
+++ b/
src/daemon/utils_random.h
@@
-32,6
+32,14
@@
double cdrand_d(void);
/**
double cdrand_d(void);
/**
+ * 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(void);
+
+/**
* Returns a random long between min and max, inclusively.
*
* If min is larger than max, the result may be rounded incorrectly and may be
* Returns a random long between min and max, inclusively.
*
* If min is larger than max, the result may be rounded incorrectly and may be