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