From dbc8994d667f55793aa0ca89944b34e9b027ccad Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 9 Jun 2008 07:07:18 +0000 Subject: rename arc4random_bytes => arc4random_buf to match libc's nicer name; ok deraadt@ --- sys/kern/init_main.c | 4 ++-- sys/kern/kern_sysctl.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') 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); } -- cgit v1.2.3