summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-06-09 07:07:18 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-06-09 07:07:18 +0000
commitdbc8994d667f55793aa0ca89944b34e9b027ccad (patch)
tree9190acdfd8ec27a88a4b4e9caa9cf6963eb7b419 /sys/net/pf.c
parent4c1ad4a6cb68b98b13b7a966950ddb4ed17ce8a0 (diff)
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 4ee915b2e83..ad18ee0e632 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.581 2008/06/08 21:30:44 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.582 2008/06/09 07:07:16 djm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2947,7 +2947,7 @@ pf_tcp_iss(struct pf_pdesc *pd)
u_int32_t digest[4];
if (pf_tcp_secret_init == 0) {
- arc4random_bytes(pf_tcp_secret, sizeof(pf_tcp_secret));
+ arc4random_buf(pf_tcp_secret, sizeof(pf_tcp_secret));
MD5Init(&pf_tcp_secret_ctx);
MD5Update(&pf_tcp_secret_ctx, pf_tcp_secret,
sizeof(pf_tcp_secret));