summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-12-08 08:19:37 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-12-08 08:19:37 +0000
commit8d7625af1e95c1412b0e4caeed17ad09b50580f9 (patch)
treea56a76ee8403a3b373ffa7ba90cb46a04bd033da /usr.sbin
parenteaa777cecac5ffe4813653231622373317e153b4 (diff)
no need for arc4random_uniform() here, arc4random() does the job
spotted by deraadt@, ok eric@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/queue_backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c
index d70213cebbb..504e798391e 100644
--- a/usr.sbin/smtpd/queue_backend.c
+++ b/usr.sbin/smtpd/queue_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue_backend.c,v 1.52 2014/07/08 15:45:32 eric Exp $ */
+/* $OpenBSD: queue_backend.c,v 1.53 2014/12/08 08:19:36 gilles Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -650,7 +650,7 @@ queue_generate_msgid(void)
{
uint32_t msgid;
- while ((msgid = arc4random_uniform(0xffffffff)) == 0)
+ while ((msgid = arc4random()) == 0)
;
return msgid;
@@ -662,7 +662,7 @@ queue_generate_evpid(uint32_t msgid)
uint32_t rnd;
uint64_t evpid;
- while ((rnd = arc4random_uniform(0xffffffff)) == 0)
+ while ((rnd = arc4random()) == 0)
;
evpid = msgid;