mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Make sure the storage for isc_random32() result is 32-bit long
This commit is contained in:
parent
21a547c100
commit
e3131b8d52
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue