summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2010-01-27 14:39:21 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2010-01-27 14:39:21 +0000
commit0e5bec497098e694d07eadb9f051f4cae7d87f2b (patch)
tree518f597950b9766ca594721c4e49efd1d0639702 /usr.sbin/nsd
parent2370bdb04c5ebcc0dc575348b5765f46deefb693 (diff)
use arc4random() instead of random()
Diffstat (limited to 'usr.sbin/nsd')
-rw-r--r--usr.sbin/nsd/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/util.c b/usr.sbin/nsd/util.c
index b294e8870f6..2a50c15a5c4 100644
--- a/usr.sbin/nsd/util.c
+++ b/usr.sbin/nsd/util.c
@@ -962,5 +962,5 @@ addr2ip(
uint16_t
qid_generate()
{
- return (uint16_t) random();
+ return (uint16_t) arc4random();
}