Make sure the storage for isc_random32() result is 32-bit long

This commit is contained in:
Ondřej Surý 2018-08-07 09:52:47 +02:00
parent 21a547c100
commit e3131b8d52

View file

@ -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;