X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_random.h;h=75bdc12e127f6210eae5de1c0f71b95157c61955;hp=d56bcf6a614ef443f0b5972976821c791557e0ed;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=eec0cd9ca51c5c132ed09fc4699c02f3bd12d748 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