From: Ondřej Surý Date: Tue, 7 Aug 2018 07:52:47 +0000 (+0200) Subject: Make sure the storage for isc_random32() result is 32-bit long X-Git-Tag: v9.13.3~76^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3131b8d525585f9f1b893dcc6c1862b65d2aea4;p=thirdparty%2Fbind9.git Make sure the storage for isc_random32() result is 32-bit long --- diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c index c27f2964eb9..448e12aa3b7 100644 --- a/lib/dns/rdataset.c +++ b/lib/dns/rdataset.c @@ -416,7 +416,8 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, } INSIST(i == count); - unsigned int j, seed; + unsigned int j; + isc_uint32_t seed; if (ISC_LIKELY(want_random)) { seed = isc_random32(); j = 0;