X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_random.h;h=ff0022ebccb26dfecd796b29e40c14896ce34d1f;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hp=e25ae9b67829c4579406e7d96e912f1bcdeab4af;hpb=3fb6fe5776c14f41879249f4147c0b8924b39cc1;p=collectd.git diff --git a/src/daemon/utils_random.h b/src/daemon/utils_random.h index e25ae9b6..ff0022eb 100644 --- a/src/daemon/utils_random.h +++ b/src/daemon/utils_random.h @@ -24,12 +24,15 @@ * Florian Forster **/ +#ifndef UTILS_RANDOM_H +#define UTILS_RANDOM_H 1 + /** * Returns a random double value in the range [0..1), i.e. excluding 1. * * This function is thread- and reentrant-safe. */ -double cdrand_d(); +double cdrand_d(void); /** * cdrand_u returns a random uint32_t value uniformly distributed in the range @@ -37,7 +40,7 @@ double cdrand_d(); * * This function is thread- and reentrant-safe. */ -uint32_t cdrand_u(); +uint32_t cdrand_u(void); /** * Returns a random long between min and max, inclusively. @@ -46,3 +49,5 @@ uint32_t cdrand_u(); * outside the intended range. This function is thread- and reentrant-safe. */ long cdrand_range(long min, long max); + +#endif /* !UTILS_RANDOM_H */