]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Fix final nit for dns_random 5988/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 29 Nov 2018 10:15:21 +0000 (11:15 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 29 Nov 2018 10:15:21 +0000 (11:15 +0100)
pdns/dns_random.cc

index 58426facec3e77b93a0cfae407142ecfe8a239ea..58f3c9caae3246341342b6fc6009fd57de5c5cae 100644 (file)
@@ -224,7 +224,7 @@ uint32_t dns_random(uint32_t upper_bound) {
      On applicable rngs, we loop until the rng spews out
      value larger than min, and then take modulo out of that.
   */
-#if (UINT32_MAX > 0xffffffffUL)
+#if (ULONG_MAX > 0xffffffffUL)
   min = 0x100000000UL % upper_bound;
 #else
   /* Calculate (2**32 % upper_bound) avoiding 64-bit math */