X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_random.h;h=75bdc12e127f6210eae5de1c0f71b95157c61955;hb=ed749136d186ae3cb9664e60064b841eaaf45b01;hp=d56bcf6a614ef443f0b5972976821c791557e0ed;hpb=2079ee1517e34de372f58e7e2267ad5c71a8a41f;p=collectd.git diff --git a/src/daemon/utils_random.h b/src/daemon/utils_random.h index d56bcf6a..75bdc12e 100644 --- a/src/daemon/utils_random.h +++ b/src/daemon/utils_random.h @@ -32,6 +32,14 @@ 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