summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/nsd-xfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/nsd-xfer.c')
-rw-r--r--usr.sbin/nsd/nsd-xfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/nsd-xfer.c b/usr.sbin/nsd/nsd-xfer.c
index a0b8b2d87c9..fa63a13ffa0 100644
--- a/usr.sbin/nsd/nsd-xfer.c
+++ b/usr.sbin/nsd/nsd-xfer.c
@@ -702,7 +702,7 @@ init_query(query_type *q,
uint16_t klass,
tsig_record_type *tsig)
{
- uint16_t query_id = (uint16_t) random();
+ uint16_t query_id = qid_generate();
buffer_clear(q->packet);