summaryrefslogtreecommitdiff
path: root/sys/kern
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/kern
parent4c1ad4a6cb68b98b13b7a966950ddb4ed17ce8a0 (diff)
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c4
-rw-r--r--sys/kern/kern_sysctl.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index fd0409870d0..d50617150d1 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.149 2008/05/06 17:19:40 thib Exp $ */
+/* $OpenBSD: init_main.c,v 1.150 2008/06/09 07:07:16 djm Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -396,7 +396,7 @@ main(void *framep)
{
volatile long newguard[8];
- arc4random_bytes((long *)newguard, sizeof(newguard));
+ arc4random_buf((long *)newguard, sizeof(newguard));
for (i = sizeof(__guard)/sizeof(__guard[0]) - 1; i; i--)
__guard[i] = newguard[i];
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 0063a736d1e..1a0a15f00eb 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.160 2008/02/09 15:10:58 kettenis Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.161 2008/06/09 07:07:16 djm Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -387,7 +387,7 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
if (*oldlenp > sizeof(buf))
*oldlenp = sizeof(buf);
if (oldp) {
- arc4random_bytes(buf, *oldlenp);
+ arc4random_buf(buf, *oldlenp);
if ((error = copyout(buf, oldp, *oldlenp)))
return (error);
}