From e3131b8d525585f9f1b893dcc6c1862b65d2aea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 7 Aug 2018 09:52:47 +0200 Subject: [PATCH] Make sure the storage for isc_random32() result is 32-bit long --- lib/dns/rdataset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c index c27f2964eb..448e12aa3b 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;