summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/dpd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-01-23 01:04:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-01-23 01:04:29 +0000
commite23bb0722590c1af87dad79a60dcbb5fb2fc584a (patch)
tree2fc3e2764ddc2162dab3f1dae3333c92703e73ab /sbin/isakmpd/dpd.c
parent9ea630a61903616f292bd0f14358c2da81d9d990 (diff)
Remove a mid-layer which acts like arc4random isn't fairly standard.
ok mikeb
Diffstat (limited to 'sbin/isakmpd/dpd.c')
-rw-r--r--sbin/isakmpd/dpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/dpd.c b/sbin/isakmpd/dpd.c
index c188bd91bec..6e81ba8cbf2 100644
--- a/sbin/isakmpd/dpd.c
+++ b/sbin/isakmpd/dpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dpd.c,v 1.17 2014/01/22 03:09:31 deraadt Exp $ */
+/* $OpenBSD: dpd.c,v 1.18 2014/01/23 01:04:28 deraadt Exp $ */
/*
* Copyright (c) 2004 Håkan Olsson. All rights reserved.
@@ -323,7 +323,7 @@ dpd_event(void *v_sa)
* RFC 3706: first seq# should be random, with MSB zero,
* otherwise we just increment it.
*/
- getrandom((u_int8_t *)&isakmp_sa->dpd_seq,
+ arc4random_buf((u_int8_t *)&isakmp_sa->dpd_seq,
sizeof isakmp_sa->dpd_seq);
isakmp_sa->dpd_seq &= 0x7FFF;
} else