summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/util.c')
-rw-r--r--usr.sbin/nsd/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/nsd/util.c b/usr.sbin/nsd/util.c
index e19a23a8ac1..b294e8870f6 100644
--- a/usr.sbin/nsd/util.c
+++ b/usr.sbin/nsd/util.c
@@ -958,3 +958,9 @@ addr2ip(
return (0);
}
+
+uint16_t
+qid_generate()
+{
+ return (uint16_t) random();
+}